visual = xwa.visual;
if (width % 2)
- width++;
+ width--;
if (height % 2)
- height++;
+ height--;
gcv.function = GXcopy;
gcv.subwindow_mode = IncludeInferiors;
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);