From 634b3e9c97a09781cca59a8bdabbc0aad4ebd45a Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sun, 7 Aug 2005 07:48:57 +0000 Subject: [PATCH] 1.2 git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@72 7f574dfc-610e-0410-a909-a81674777703 --- TODO | 2 +- conky.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/TODO b/TODO index cb43c19..2e46144 100644 --- 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 --- 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 - -- 1.7.9.5