From http://www.jwz.org/xscreensaver/xscreensaver-5.33.tar.gz
[xscreensaver] / hacks / greynetic.c
index 2496cdf55fd258922d0c19c174a7ff2ad78528e5..dc71f75015c27baa95d061817fa218360da9dee1 100644 (file)
@@ -234,7 +234,7 @@ greynetic_draw (Display *dpy, Window window, void *closure)
       {
         /* give a non-opaque alpha to the color */
         unsigned long pixel = gcv.foreground;
-        unsigned long amask = BlackPixelOfScreen (0);
+        unsigned long amask = BlackPixel (dpy,0);
         unsigned long a = (random() & amask);
         pixel = (pixel & (~amask)) | a;
         gcv.foreground = pixel;
@@ -257,6 +257,9 @@ static const char *greynetic_defaults [] = {
   "*fpsSolid:  true",
   "*delay:     10000",
   "*grey:      false",
+#ifdef USE_IPHONE
+  "*ignoreRotation: True",
+#endif
   0
 };