X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion.c;h=b05c32983ef2ec52c1e0afe327ba38ed074f5217;hb=b81f521c5ad7022ac12db18ca8fcdd9fb063831e;hp=6637512f6b20dc55b66b4f13993f38c3132ccd13;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/glx/extrusion.c b/hacks/glx/extrusion.c index 6637512f..b05c3298 100644 --- a/hacks/glx/extrusion.c +++ b/hacks/glx/extrusion.c @@ -438,11 +438,14 @@ initializeGL(ModeInfo *mi, GLsizei width, GLsizei height) glViewport( 0, 0, width, height ); glEnable(GL_DEPTH_TEST); - glClearColor(0,0,0,0); glDisable (GL_CULL_FACE); glLightModeli (GL_LIGHT_MODEL_TWO_SIDE, True); glShadeModel(GL_SMOOTH); +# ifdef HAVE_JWZGLES /* #### glPolygonMode other than GL_FILL unimplemented */ + MI_IS_WIREFRAME(mi) = 0; +# endif + if (do_light) SetupLight(); if (MI_IS_WIREFRAME(mi)) { @@ -477,7 +480,9 @@ extrusion_handle_event (ModeInfo *mi, XEvent *event) 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);