diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2012-03-26 18:59:41 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-03-26 18:59:41 +0200 |
commit | 2053e9880aeece3f30060d57ed74ee5eb9cbe717 (patch) | |
tree | 46111dadfea69eb2fcf3f9c4c56c8151a035d177 /unlock_indicator.c | |
parent | 9eae4e992aebd8a9bbca5092866a660fb8c6a58b (diff) |
Bugfix: Fix background color when using cairo (Thanks Pascal)
Diffstat (limited to 'unlock_indicator.c')
-rw-r--r-- | unlock_indicator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unlock_indicator.c b/unlock_indicator.c index 1775c15..d603531 100644 --- a/unlock_indicator.c +++ b/unlock_indicator.c @@ -113,7 +113,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) { uint32_t rgb16[3] = {(strtol(strgroups[0], NULL, 16)), (strtol(strgroups[1], NULL, 16)), (strtol(strgroups[2], NULL, 16))}; - cairo_set_source_rgb(xcb_ctx, rgb16[0], rgb16[1], rgb16[2]); + cairo_set_source_rgb(xcb_ctx, rgb16[0] / 255.0, rgb16[1] / 255.0, rgb16[2] / 255.0); cairo_rectangle(xcb_ctx, 0, 0, resolution[0], resolution[1]); cairo_fill(xcb_ctx); } |