X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Frotzoomer.c;h=bace29c9c9fb31c6ac49d5f118af4f4344c5709f;hb=2d04c4f22466851aedb6ed0f2919d148f726b889;hp=efc906a5a3d9eecb7d7d7d6db20f29ccf36463fb;hpb=82c5080773aae5e72ec155327c075775e023d2ee;p=xscreensaver diff --git a/hacks/rotzoomer.c b/hacks/rotzoomer.c index efc906a5..bace29c9 100644 --- a/hacks/rotzoomer.c +++ b/hacks/rotzoomer.c @@ -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, NULL); orig_map = XGetImage (display, window, 0, 0, width, height, ~0L, ZPixmap);