summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-04-22 11:03:26 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-04-22 11:03:26 +0200
commit66788c3c13f49170aa31d798a1eafe61afdcf3b2 (patch)
tree0c77f75555b60fd58aa1c54b4f4844d929b3e948 /src
parent5fda4f2c6a046a9e24f13cb3091a5afd28aaa794 (diff)
Support --force-aliasing in --bg- options as well
Diffstat (limited to 'src')
-rw-r--r--src/support.c25
1 files changed, 4 insertions, 21 deletions
diff --git a/src/support.c b/src/support.c
index d404047..4c15adf 100644
--- a/src/support.c
+++ b/src/support.c
@@ -166,17 +166,9 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
w = scr->width;
h = scr->height;
-/* disable xinerama check for setting background */
-#if 0
-/* #ifdef HAVE_LIBXINERAMA */
- if (opt.xinerama && xinerama_screens) {
- w = xinerama_screens[xinerama_screen].width;
- h = xinerama_screens[xinerama_screen].height;
- }
-#endif /* HAVE_LIBXINERAMA */
-
pmap_d1 = XCreatePixmap(disp, root, w, h, depth);
- gib_imlib_render_image_on_drawable_at_size(pmap_d1, im, 0, 0, w, h, 1, 0, 1);
+ gib_imlib_render_image_on_drawable_at_size(pmap_d1, im, 0, 0,
+ w, h, 1, 0, !opt.force_aliasing);
fehbg = estrjoin(" ", "feh --bg-scale", filbuf, NULL);
} else if (centered) {
XGCValues gcval;
@@ -187,15 +179,6 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
w = scr->width;
h = scr->height;
-/* disable xinerama check for setting background */
-#if 0
-/* #ifdef HAVE_LIBXINERAMA */
- if (opt.xinerama && xinerama_screens) {
- w = xinerama_screens[xinerama_screen].width;
- h = xinerama_screens[xinerama_screen].height;
- }
-#endif /* HAVE_LIBXINERAMA */
-
pmap_d1 = XCreatePixmap(disp, root, w, h, depth);
gcval.foreground = BlackPixel(disp, DefaultScreen(disp));
gc = XCreateGC(disp, root, GCForeground, &gcval);
@@ -224,7 +207,7 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
}
pmap_d1 = XCreatePixmap(disp, root, w, h, depth);
gib_imlib_render_image_on_drawable_at_size(pmap_d1, im,
- render_x, render_y, w, h, 1, 0, 1);
+ render_x, render_y, w, h, 1, 0, !opt.force_aliasing);
fehbg = estrjoin(" ", "feh --bg-fill", filbuf, NULL);
} else if (filled == 2) {
int scr_w = scr->width;
@@ -262,7 +245,7 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
gc = XCreateGC(disp, root, GCForeground, &gcval);
XFillRectangle(disp, pmap_d1, gc, 0, 0, scr_w, scr_h);
gib_imlib_render_image_on_drawable_at_size(pmap_d1, im,
- render_x, render_y, w, h, 1, 0, 1);
+ render_x, render_y, w, h, 1, 0, !opt.force_aliasing);
XFreeGC(disp, gc);
fehbg = estrjoin(" ", "feh --bg-max", filbuf, NULL);
} else {