From http://www.jwz.org/xscreensaver/xscreensaver-5.38.tar.gz
[xscreensaver] / hacks / rocks.c
index f1c606337124b48eb2da67e042c5a7eefb041ad3..5a976df65fcd308000aa10d827977f97eefaf0be 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 1992-2008 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
@@ -416,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++;
 
@@ -509,6 +510,7 @@ rocks_free (Display *dpy, Window window, void *closure)
 \f
 
 static const char *rocks_defaults [] = {
+  ".lowrez:     true",
   ".background:        Black",
   ".foreground:        #E9967A",
   "*fpsSolid:  true",
@@ -522,6 +524,9 @@ static const char *rocks_defaults [] = {
   "*left3d:    Blue",
   "*right3d:   Red",
   "*delta3d:   1.5",
+#ifdef HAVE_MOBILE
+  "*ignoreRotation: True",
+#endif
   0
 };