From http://www.jwz.org/xscreensaver/xscreensaver-5.18.tar.gz
[xscreensaver] / hacks / glx / skytentacles.c
index 7fa84b4c4d0c74f49b609c178d573173362628c4..c9f1febe9f4fc6cbef90044c1b154c7745b7baa6 100644 (file)
@@ -850,8 +850,6 @@ init_tentacles (ModeInfo *mi)
       fprintf(stderr, "%s: out of memory\n", progname);
       exit(1);
     }
-
-    tc = &tcs[MI_SCREEN(mi)];
   }
 
   tc = &tcs[MI_SCREEN(mi)];
@@ -964,7 +962,7 @@ init_tentacles (ModeInfo *mi)
     glEnable (GL_BLEND);
 
     /* Dark gray instead of black, so the outlines show up */
-    glClearColor (0.08, 0.08, 0.08, 1.0);
+    glClearColor (0.13, 0.13, 0.13, 1.0);
   }
 
   compute_unit_torus (mi, 0.5, 
@@ -995,7 +993,7 @@ draw_tentacles (ModeInfo *mi)
   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
 
   glPushMatrix ();
-
+  glRotatef(current_device_rotation(), 0, 0, 1);
 
 # if 1
   glScalef (3, 3, 3);