diff options
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -577,7 +577,7 @@ void img_render(img_t *img) int sx, sy, sw, sh; int dx, dy, dw, dh; Imlib_Image bg; - unsigned long c; + XColor c; win = img->win; img_fit(img); @@ -646,7 +646,7 @@ void img_render(img_t *img) imlib_image_put_back_data(data); } else { c = win->win_bg; - imlib_context_set_color(c >> 16 & 0xFF, c >> 8 & 0xFF, c & 0xFF, 0xFF); + imlib_context_set_color(c.red >> 8, c.green >> 8, c.blue >> 8, 0xFF); imlib_image_fill_rectangle(0, 0, dw, dh); } imlib_blend_image_onto_image(img->im, 0, sx, sy, sw, sh, 0, 0, dw, dh); |