1.2
authorBrenden Matthews <brenden1@rty.ca>
Sun, 7 Aug 2005 07:48:57 +0000 (07:48 +0000)
committerBrenden Matthews <brenden1@rty.ca>
Sun, 7 Aug 2005 07:48:57 +0000 (07:48 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@72 7f574dfc-610e-0410-a909-a81674777703

TODO
conky.c

diff --git a/TODO b/TODO
index cb43c19..2e46144 100644 (file)
--- a/TODO
+++ b/TODO
@@ -3,5 +3,5 @@
        * simple buttons?
        * icecast status
        * rewrite parts of code, making them more effecient and modular (in particular, the way objects are handled is a complete mess)
-       * network transparency
+       * network transparency (aim for 1.5)
        * think of new features to add
diff --git a/conky.c b/conky.c
index 934c8d5..bfd9152 100644 (file)
--- a/conky.c
+++ b/conky.c
@@ -3111,11 +3111,8 @@ static void draw_line(char *s)
 
                        case ALIGNC:
                                {
-                                       int pos_x =
-                                           text_start_x + text_width -
-                                           cur_x - 1 -
-                                           get_string_width(p) / 2 -
-                                           (text_width / 2);
+                                       printf("text_start_x %i text_width %i cur_x %i get_string_width(p) %i text_width %i\n", text_start_x, text_width, cur_x, get_string_width(p), text_width);
+                                       int pos_x = (text_start_x*2) + text_width - cur_x -  ((float)get_string_width(p) / 2) - ((float)text_width / 2);
                                        if (pos_x >
                                            specials[special_index].arg)
                                                w = pos_x -