From http://www.jwz.org/xscreensaver/xscreensaver-5.22.tar.gz
[xscreensaver] / hacks / braid.c
index 1a802ff7fdbddb4a52fcdcaf9c2ec1df5e839aed..c73b89d785e039b4051394e480c4356498197f81 100644 (file)
@@ -36,9 +36,11 @@ static const char sccsid[] = "@(#)braid.c    5.00 2000/11/01 xlockmore";
                                   "*count: 15 \n" \
                                   "*cycles: 100 \n" \
                                   "*size: -7 \n" \
-                                  "*ncolors: 64 \n"
+                                  "*ncolors: 64 \n" \
+                                  "*fpsSolid: true \n" \
+                                  "*ignoreRotation: True" \
+
 # define UNIFORM_COLORS
-# define reshape_braid 0
 # define braid_handle_event 0
 # include "xlockmore.h"
 # include "erase.h"
@@ -49,8 +51,7 @@ static const char sccsid[] = "@(#)braid.c     5.00 2000/11/01 xlockmore";
 
 #ifdef MODE_braid
 
-ENTRYPOINT ModeSpecOpt braid_opts =
-{0, (XrmOptionDescRec *) NULL, 0, (argtype *) NULL, (OptionStruct *) NULL};
+ENTRYPOINT ModeSpecOpt braid_opts = {0, NULL, 0, NULL, NULL};
 
 #ifdef USE_MODULES
 ModStruct   braid_description =
@@ -446,6 +447,13 @@ draw_braid(ModeInfo * mi)
        }
 }
 
+ENTRYPOINT void
+reshape_braid(ModeInfo * mi, int width, int height)
+{
+  XClearWindow (MI_DISPLAY (mi), MI_WINDOW(mi));
+  init_braid (mi);
+}
+
 ENTRYPOINT void
 release_braid(ModeInfo * mi)
 {