1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 10:35:10 +00:00
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@37 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2005-07-31 20:05:19 +00:00
parent 4435a165b7
commit 023ed2200e

View File

@ -2455,6 +2455,10 @@ static void text_size_updater(char *s)
} }
} }
if (specials[special_index].type == OFFSET) {
w += specials[special_index].arg + get_string_width("a"); /* filthy, but works */
}
special_index++; special_index++;
s = p + 1; s = p + 1;
} }
@ -2822,9 +2826,6 @@ static void draw_line(char *s)
case OFFSET: case OFFSET:
{ {
w = text_start_x + specials[special_index].arg; w = text_start_x + specials[special_index].arg;
printf("w %i width %i\n", w, text_width);
if ((w + get_string_width(p)) > text_width)
w = text_width - get_string_width(p);
} }
break; break;