diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-07-20 02:10:12 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-07-20 02:10:12 +0200 |
commit | 0379af967bddd6e90e4c7dadee6d96be1cb82f1d (patch) | |
tree | 9e077e2db4ec01aca35c695998c810d8b656eeaf /src | |
parent | f0aafcf1762c7736e16b2db638e20479a8bd6fe9 (diff) |
Make --image-bg white work in full-screen mode
Diffstat (limited to 'src')
-rw-r--r-- | src/winwidget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/winwidget.c b/src/winwidget.c index a678781..2ad2892 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -350,7 +350,10 @@ void winwidget_setup_pixmaps(winwidget winwid) if (winwid->gc == None) { XGCValues gcval; - gcval.foreground = BlackPixel(disp, DefaultScreen(disp)); + if (!strcmp(opt.image_bg, "white")) + gcval.foreground = WhitePixel(disp, DefaultScreen(disp)); + else + gcval.foreground = BlackPixel(disp, DefaultScreen(disp)); winwid->gc = XCreateGC(disp, winwid->win, GCForeground, &gcval); } winwid->bg_pmap = XCreatePixmap(disp, winwid->win, scr->width, scr->height, depth); |