From http://www.jwz.org/xscreensaver/xscreensaver-5.22.tar.gz
[xscreensaver] / hacks / rocks.c
index 37bd07927f574e103169e5b681176b67cb2f1db2..d44e75208fec0778b4443cd0437b6296262fda87 100644 (file)
@@ -1,5 +1,4 @@
-/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997, 1998, 2006
- *  Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1992-2013 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
@@ -417,7 +416,8 @@ rocks_init (Display *d, Window w)
   XQueryColor(st->dpy, cmap, &st->colors[0]);
 
   st->ncolors--;
-  make_random_colormap(st->dpy, xgwa.visual, cmap, st->colors+1, &st->ncolors, True,
+  make_random_colormap(xgwa.screen, xgwa.visual, cmap,
+                       st->colors+1, &st->ncolors, True,
                       True, 0, True);
   st->ncolors++;
 
@@ -512,6 +512,7 @@ rocks_free (Display *dpy, Window window, void *closure)
 static const char *rocks_defaults [] = {
   ".background:        Black",
   ".foreground:        #E9967A",
+  "*fpsSolid:  true",
   "*colors:    5",
   "*count:     100",
   "*delay:     50000",
@@ -522,6 +523,9 @@ static const char *rocks_defaults [] = {
   "*left3d:    Blue",
   "*right3d:   Red",
   "*delta3d:   1.5",
+#ifdef USE_IPHONE
+  "*ignoreRotation: True",
+#endif
   0
 };