X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Frocks.c;h=d44e75208fec0778b4443cd0437b6296262fda87;hp=f1c606337124b48eb2da67e042c5a7eefb041ad3;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/hacks/rocks.c b/hacks/rocks.c index f1c60633..d44e7520 100644 --- a/hacks/rocks.c +++ b/hacks/rocks.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-2008 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 @@ -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++; @@ -522,6 +523,9 @@ static const char *rocks_defaults [] = { "*left3d: Blue", "*right3d: Red", "*delta3d: 1.5", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };