summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-20 02:10:12 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-20 02:10:12 +0200
commit0379af967bddd6e90e4c7dadee6d96be1cb82f1d (patch)
tree9e077e2db4ec01aca35c695998c810d8b656eeaf /src
parentf0aafcf1762c7736e16b2db638e20479a8bd6fe9 (diff)
Make --image-bg white work in full-screen mode
Diffstat (limited to 'src')
-rw-r--r--src/winwidget.c5
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);