X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Frocks.c;h=d44e75208fec0778b4443cd0437b6296262fda87;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hp=37bd07927f574e103169e5b681176b67cb2f1db2;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/rocks.c b/hacks/rocks.c index 37bd0792..d44e7520 100644 --- a/hacks/rocks.c +++ b/hacks/rocks.c @@ -1,5 +1,4 @@ -/* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997, 1998, 2006 - * Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2013 Jamie Zawinski * * 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 };