http://www.mirrorservice.org/sites/master.us.finkmirrors.net/distfiles/md5/fa43fdd68d...
[xscreensaver] / hacks / rotzoomer.c
index efc906a5a3d9eecb7d7d7d6db20f29ccf36463fb..76b3b3fb0c0adc03c319051eedb0ad30465ab970 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);
 
        orig_map = XGetImage (display, window, 0, 0, width, height, ~0L, ZPixmap);