diff options
Diffstat (limited to 'src/tsar.c')
| -rw-r--r-- | src/tsar.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ Window win; GC gc; XftFont* font = NULL; -XftColor fg_color; +XftColor xft_fg_color; static int bar_width = 1000; static float width_ratio = 1; @@ -91,7 +91,7 @@ void init_x(void) { DefaultVisual(display, DefaultScreen(display)), DefaultColormap(display, DefaultScreen(display)), "#FFFFFF", - &fg_color + &xft_fg_color ); gc = XCreateGC(display, win, 0, NULL); @@ -118,7 +118,7 @@ void draw_text(const char* text, int x, int y) { ); int dy = y + (bar_height - font->height) / 2 + font->ascent; - XftDrawString8(xft_draw, &fg_color, font, x, dy, (const FcChar8*)text, strlen(text)); + XftDrawString8(xft_draw, &xft_fg_color, font, x, dy, (const FcChar8*)text, strlen(text)); XftDrawDestroy(xft_draw); } |
