http://www.jwz.org/xscreensaver/xscreensaver-5.07.tar.gz
[xscreensaver] / hacks / glx / sierpinski3d.c
index ec1d4a88f45021d89c24fb3fee086e5709a021ee..fd6fa6e89f55af080d576b8116475b29da6ac524 100644 (file)
@@ -42,7 +42,7 @@ static const char sccsid[] = "@(#)sierpinski3D.c      00.01 99/11/04 xlockmore";
 #define DEF_SPIN                               "True"
 #define DEF_WANDER                             "True"
 #define DEF_SPEED                              "150"
-#define DEF_MAXDEPTH                   "5"
+#define DEF_MAX_DEPTH                  "5"
 
 #include "rotator.h"
 #include "gltrackball.h"
@@ -65,10 +65,10 @@ static XrmOptionDescRec opts[] = {
 };
 
 static argtype vars[] = {
-  {&do_spin,   "spin",     "Spin",     DEF_SPIN,     t_Bool},
-  {&do_wander, "wander",   "Wander",   DEF_WANDER,   t_Bool},
-  {&speed,     "speed",    "Speed",    DEF_SPEED,    t_Int},
-  {&max_depth, "maxDepth", "MaxDepth", DEF_MAXDEPTH, t_Int},
+  {&do_spin,   "spin",     "Spin",     DEF_SPIN,      t_Bool},
+  {&do_wander, "wander",   "Wander",   DEF_WANDER,    t_Bool},
+  {&speed,     "speed",    "Speed",    DEF_SPEED,     t_Int},
+  {&max_depth, "maxDepth", "MaxDepth", DEF_MAX_DEPTH, t_Int},
 };
 
 
@@ -463,7 +463,9 @@ gasket_handle_event (ModeInfo *mi, XEvent *event)
     }
   else if (event->xany.type == ButtonPress &&
            (event->xbutton.button == Button4 ||
-            event->xbutton.button == Button5))
+            event->xbutton.button == Button5 ||
+            event->xbutton.button == Button6 ||
+            event->xbutton.button == Button7))
     {
       gltrackball_mousewheel (gp->trackball, event->xbutton.button, 10,
                               !!event->xbutton.state);