http://www.mirrorservice.org/sites/master.us.finkmirrors.net/distfiles/md5/fa43fdd68d...
[xscreensaver] / hacks / ripples.c
index eded66ee4d73c3f224dd9e1f9bbeb419d1c9f633..323f1c1c34a2b51dd3996941f7ce7421c2d01bd8 100644 (file)
@@ -436,12 +436,20 @@ setup_X(Display * disp, Window win)
   bigheight = xwa.height;
   visual = xwa.visual;
 
-#if 1 /* I'm not entirely sure if I need this */
+
+  /* This causes buffer_map to be 1 pixel taller and wider than orig_map,
+     which can cause the two XImages to have different bytes-per-line,
+     which causes stair-stepping.  So this better not be necessary...
+     -jwz, 23-Nov-01
+   */
+#if 0 /* I'm not entirely sure if I need this */
   if (bigwidth % 2)
     bigwidth++;
   if (bigheight % 2)
     bigheight++;
 #endif
+
+
   width = bigwidth / 2;
   height = bigheight / 2;
 
@@ -458,7 +466,7 @@ setup_X(Display * disp, Window win)
 
     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, xwa.width, xwa.height,
                         ~0L, ZPixmap);