X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fflipscreen3d.c;h=6d5844a99fe5753227dfcbb5081440aa8d5414ec;hb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;hp=996d7c75b610b94327c20a889a87632e4a528f8a;hpb=c494fd2e6b3b25582375d62e40f4f5cc984ca424;p=xscreensaver diff --git a/hacks/glx/flipscreen3d.c b/hacks/glx/flipscreen3d.c index 996d7c75..6d5844a9 100644 --- a/hacks/glx/flipscreen3d.c +++ b/hacks/glx/flipscreen3d.c @@ -42,6 +42,7 @@ # define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF # endif +#define DEF_ROTATE "True" static int rotate; #define QW 12 @@ -58,7 +59,7 @@ static XrmOptionDescRec opts[] = { static argtype vars[] = { - {&rotate, "rotate", "Rotate", "True", t_Bool}, + {&rotate, "rotate", "Rotate", DEF_ROTATE, t_Bool}, }; @@ -140,7 +141,9 @@ screenflip_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 (c->trackball, event->xbutton.button, 10, !!event->xbutton.state); @@ -467,8 +470,6 @@ ENTRYPOINT void init_screenflip(ModeInfo *mi) c->show_colors[0] = c->show_colors[1] = c->show_colors[2] = c->show_colors[3] = 1; - glClearColor(0.0,0.0,0.0,0.0); - if (! MI_IS_WIREFRAME(mi)) { glShadeModel(GL_SMOOTH);