From http://www.jwz.org/xscreensaver/xscreensaver-5.22.tar.gz
[xscreensaver] / hacks / loop.c
index 7add6d27e7cb899ea1d52e58829294c8052023bc..ad3e1b02cd211467c8c56c18afbdf245c1593743 100644 (file)
@@ -89,9 +89,11 @@ static const char sccsid[] = "@(#)loop.c     5.01 2000/03/15 xlockmore";
                                        "*count:   -5     \n" \
                                        "*cycles:  1600   \n" \
                                        "*size:    -12    \n" \
-                                       "*ncolors: 15     \n"
+                                       "*ncolors: 15     \n" \
+                                       "*fpsSolid: true     \n" \
+                                       "*ignoreRotation: True \n" \
+
 # define UNIFORM_COLORS
-# define reshape_loop 0
 # define loop_handle_event 0
 # include "xlockmore.h"                /* in xscreensaver distribution */
 #else /* STANDALONE */
@@ -1676,6 +1678,13 @@ draw_loop (ModeInfo * mi)
        }
 }
 
+ENTRYPOINT void
+reshape_loop(ModeInfo * mi, int width, int height)
+{
+  XClearWindow (MI_DISPLAY (mi), MI_WINDOW(mi));
+  init_loop (mi);
+}
+
 ENTRYPOINT void
 refresh_loop (ModeInfo * mi)
 {