From http://www.jwz.org/xscreensaver/xscreensaver-5.18.tar.gz
[xscreensaver] / hacks / loop.c
index 7b50a56a0b52dc20e2e75a60eaa11adb75d8b4a9..7a998738f73b2de0471bd6b9dfad443c3c0463fe 100644 (file)
@@ -93,7 +93,6 @@ static const char sccsid[] = "@(#)loop.c      5.01 2000/03/15 xlockmore";
                                        "*fpsSolid: true     \n" \
 
 # define UNIFORM_COLORS
-# define reshape_loop 0
 # define loop_handle_event 0
 # include "xlockmore.h"                /* in xscreensaver distribution */
 #else /* STANDALONE */
@@ -1678,6 +1677,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)
 {