From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / hacks / hypercube.c
index ce35ba9b5f97c638c31bd054fd72aae47c0f8826..0055696b8d110c66703fc8e94f69bdcca3540412 100644 (file)
@@ -1,5 +1,4 @@
-/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1998, 2000, 2006
- *  Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1992-2008 Jamie Zawinski <jwz@jwz.org>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -76,7 +75,7 @@ static const struct line_info line_table[LINE_COUNT];
 
 static const char *hypercube_defaults[] =
 {
-  "*observer-z:        3",
+  "*observer-z:        3.0",
   "*delay: 10000",
   "*xy: 3",
   "*xz:        5",
@@ -86,6 +85,7 @@ static const char *hypercube_defaults[] =
   "*zw:        0",
   ".background:        black",
   ".foreground:        white",
+  "*fpsSolid:  true",
   "*color0:    magenta",
   "*color3:    #FF0093",
   "*color1:    yellow",
@@ -244,7 +244,7 @@ hypercube_draw (Display *dpy, Window window, void *closure)
   struct hyper_state *hs = (struct hyper_state *) closure;
   int this_delay = hs->hs_delay;
 
-#ifdef HAVE_COCOA      /* Don't second-guess Quartz's double-buffering */
+#ifdef HAVE_JWXYZ      /* Don't second-guess Quartz's double-buffering */
   XClearWindow (dpy, window);
 #endif
 
@@ -254,7 +254,6 @@ hypercube_draw (Display *dpy, Window window, void *closure)
       char moved[POINT_COUNT];
       int redraw;
       int stop;
-      int delay;
 
       icon = hs->hs_icon;
       resize = hs->hs_resize;
@@ -473,7 +472,6 @@ hypercube_draw (Display *dpy, Window window, void *closure)
 
     skip3:
       /* stop = hs->hs_stop; */
-      delay = hs->hs_delay;
       if (stop && this_delay < 10000)
        this_delay = 10000;
     }