mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35:10 +00:00
asdf
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@37 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
4435a165b7
commit
023ed2200e
7
conky.c
7
conky.c
@ -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++;
|
||||
s = p + 1;
|
||||
}
|
||||
@ -2822,9 +2826,6 @@ static void draw_line(char *s)
|
||||
case OFFSET:
|
||||
{
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user