summaryrefslogtreecommitdiff
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
parentf0aafcf1762c7736e16b2db638e20479a8bd6fe9 (diff)
Make --image-bg white work in full-screen mode
-rw-r--r--ChangeLog4
-rw-r--r--src/winwidget.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b2a3d39..0924004 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+git HEAD
+
+ * Respect --image-bg option in full-screen mode
+
Mon, 04 Jul 2011 14:46:36 +0200 Daniel Friesel <derf@finalrewind.org>
* Release v1.14.2
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);