From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver] / hacks / glx / b_lockglue.c
index 22c723a338ac8daa82a6d3461bfd2f548f0aebab..f322be2caf9b54d2cd9c285a8e4c01450bb03ae0 100644 (file)
@@ -34,16 +34,7 @@ struct glb_config glb_config =
        1.5,                    /* scale_factor */
        -4,                     /* screen_bottom */
        4,                      /* screen_top */
-#if 0
-       {0.1, 0.0, 0.4, 0.0},   /* bg_colour */
-#else
-       {0.0, 0.0, 0.0, 0.0},   /* bg_colour */
-#endif
-#if 0
-       {0.7, 0.7, 0.0, 0.3}    /* bubble_colour */
-#else
        {0.0, 0.0, 0.7, 0.3}    /* bubble_colour */
-#endif
 };
 
 #ifdef STANDALONE
@@ -206,7 +197,10 @@ draw_bubble3d(ModeInfo * mi)
        glXMakeCurrent(display, window, *(c->glx_context));
 
         glb_config.polygon_count = 0;
+        glPushMatrix();
+        glRotatef(current_device_rotation(), 0, 0, 1);
        do_display(c);
+        glPopMatrix();
         mi->polygon_count = glb_config.polygon_count;
 
         if (mi->fps_p) do_fps (mi);