http://ftp.x.org/contrib/applications/xscreensaver-3.06.tar.gz
[xscreensaver] / hacks / hypercube.c
index 9c0def91e8169d45b85ef3dd400a36e2de6b1d66..5150ec3bdfbc130e49f6bf6ae4c66ba03ffc85cd 100644 (file)
@@ -1,5 +1,5 @@
-/* xscreensaver, Copyright (c) 1992, 1995, 1996
- *  Jamie Zawinski <jwz@netscape.com>
+/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1998
+ *  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
@@ -210,7 +210,8 @@ hyper (double xy, double xz, double yz, double xw, double yw, double zw)
       rotates (y,w);
       rotates (z,w);
 
-      XSync (dpy, True);
+      XSync (dpy, False);
+      screenhack_handle_events (dpy);
       if (delay) usleep (delay);
     }
 }
@@ -219,8 +220,8 @@ hyper (double xy, double xz, double yz, double xw, double yw, double zw)
 char *progclass = "Hypercube";
 
 char *defaults [] = {
-  "Hypercube.background:       black",         /* to placate SGI */
-  "Hypercube.foreground:       white",
+  ".background:        black",
+  ".foreground:        white",
   "*color0:    red",
   "*color1:    orange",
   "*color2:    yellow",
@@ -238,7 +239,7 @@ char *defaults [] = {
   "*zw:                0.000",
 
   "*observer-z:        5",
-  "*delay:     100000",
+  "*delay:     30000",
   0
 };