Status: Fix text drawing with systray shift

This commit is contained in:
Martin Duquesnoy 2010-07-23 12:31:08 +02:00
parent cc10d56359
commit 4cf2b8bf8f
2 changed files with 3 additions and 4 deletions

View File

@ -158,7 +158,7 @@ statustext_normal(int sc, char *str)
strwc[j] = str[i];
/* Draw normal text without any blocks */
draw_text(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - (textw(strwc) + sw++),
draw_text(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - (textw(strwc) + sw),
FHINFOBAR, infobar[sc].bar->fg, 0, strwc);
if(n)
@ -172,8 +172,8 @@ statustext_normal(int sc, char *str)
for(j = 0, ++i; str[i] != '\\'; col[j++] = str[i++]);
/* Draw a rectangle with the bar color to draw the text properly */
draw_rectangle(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - textw(&buf[k]),
0, INFOBARH - (sgeo[sc].width - SHADH) - (textw(&buf[k]) + sw),
draw_rectangle(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - (textw(&buf[k]) + sw),
0, INFOBARH - (sgeo[sc].width - SHADH) - textw(&buf[k]),
INFOBARH, conf.colors.bar);
/* Draw text with its color */

View File

@ -99,7 +99,6 @@ quit(void)
infobar_destroy();
systray_freeicons();
systray_kill();
IFREE(sgeo);
IFREE(spgeo);