From 675db4bbb646ff51cc3ecc8ba7d587670872580a Mon Sep 17 00:00:00 2001 From: Arthur Williams Date: Sun, 19 Sep 2021 01:49:56 -0700 Subject: Make statusbar optional (#95) libXft and libfontconfig are now optional dependencies which can be disabled via `HAVE_LIBFONTS=0`. Disabling them means disabling the statusbar. This also does not search for freetype2 header if disabled. Co-authored-by: NRK --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'image.c') diff --git a/image.c b/image.c index 4fd1c36..43bd23c 100644 --- a/image.c +++ b/image.c @@ -643,7 +643,7 @@ void img_render(img_t *img) } imlib_image_put_back_data(data); } else { - c = win->win_bg.pixel; + c = win->win_bg; imlib_context_set_color(c >> 16 & 0xFF, c >> 8 & 0xFF, c & 0xFF, 0xFF); imlib_image_fill_rectangle(0, 0, dw, dh); } -- cgit v1.2.3