From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver] / hacks / glx / lavalite.c
index c31df5a43d9a2621568c2370451df9aca0b25571..f80847f9ac35ea415e8e8a932f3d1c7461cad9c9 100644 (file)
@@ -1514,6 +1514,7 @@ draw_lavalite (ModeInfo *mi)
 #endif  /* 0 */
 
     glLoadIdentity();
+    glRotatef(current_device_rotation(), 0, 0, 1);
 
     gluLookAt ((cx - 0.5) * 8,         /* Position the camera */
                (cy - 0.5) * 8,
@@ -1523,7 +1524,6 @@ draw_lavalite (ModeInfo *mi)
 
     gltrackball_rotate (bp->trackball);        /* Apply mouse-based camera position */
 
-
     /* Place the lights relative to the object, before the object has
        been rotated or wandered within the scene. */
     glLightfv(GL_LIGHT0, GL_POSITION, light0_pos);