From http://www.jwz.org/xscreensaver/xscreensaver-5.22.tar.gz
[xscreensaver] / hacks / sierpinski.c
index f6e18181dc93cd8d70b9733bb46c2b04511e5476..4f1aa34a3051557fabffb46355f19a108c8c2f51 100644 (file)
@@ -37,9 +37,11 @@ static const char sccsid[] = "@(#)sierpinski.c       5.00 2000/11/01 xlockmore";
 # define DEFAULTS      "*delay: 400000 \n" \
                                        "*count: 2000 \n" \
                                        "*cycles: 100 \n" \
-                                       "*ncolors: 64 \n"
+                                       "*ncolors: 64 \n" \
+                                       "*fpsSolid: true \n" \
+                                       "*ignoreRotation: True \n" \
+
 # define BRIGHT_COLORS
-# define reshape_sierpinski 0
 # define sierpinski_handle_event 0
 # include "xlockmore.h"                /* in xscreensaver distribution */
 #else /* STANDALONE */
@@ -198,6 +200,13 @@ draw_sierpinski(ModeInfo * mi)
                startover(mi);
 }
 
+ENTRYPOINT void
+reshape_sierpinski(ModeInfo * mi, int width, int height)
+{
+  XClearWindow (MI_DISPLAY (mi), MI_WINDOW(mi));
+  init_sierpinski (mi);
+}
+
 ENTRYPOINT void
 release_sierpinski(ModeInfo * mi)
 {