http://www.jwz.org/xscreensaver/xscreensaver-5.12.tar.gz
[xscreensaver] / hacks / glx / glplanet.c
index a8f154700bd35d57e82b502d36eb5b704c1cade7..1a884bf3cb5e71b7f6404fa19b69b76a4ac83cbb 100644 (file)
@@ -447,7 +447,9 @@ planet_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);
@@ -553,6 +555,7 @@ init_planet (ModeInfo * mi)
   glPushMatrix ();
   glScalef (RADIUS, RADIUS, RADIUS);
   glRotatef (90, 1, 0, 0);
+  glFrontFace(GL_CW);
   unit_sphere (resolution, resolution, wire);
   mi->polygon_count += resolution*resolution;
   glPopMatrix ();