http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.14.tar.gz
[xscreensaver] / hacks / rotzoomer.c
index efc906a5a3d9eecb7d7d7d6db20f29ccf36463fb..9425dc5410551de849026ad4ea6b4071ce0c6a6c 100644 (file)
@@ -311,9 +311,9 @@ static void setup_X (Display * disp, Window win)
        visual = xwa.visual;
 
        if (width % 2)
-               width++;
+               width--;
        if (height % 2)
-               height++;
+               height--;
 
        gcv.function = GXcopy;
        gcv.subwindow_mode = IncludeInferiors;
@@ -321,7 +321,7 @@ static void setup_X (Display * disp, Window win)
        if (use_subwindow_mode_p (xwa.screen, window))  /* see grabscreen.c */
                gcflags |= GCSubwindowMode;
        gc = XCreateGC (display, window, gcflags, &gcv);
-       grab_screen_image (xwa.screen, window);
+        load_random_image (xwa.screen, window, window, NULL);
 
        orig_map = XGetImage (display, window, 0, 0, width, height, ~0L, ZPixmap);