X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fnerverot.c;h=fe58ea1a5d1779c8b02157e357904ef1fa19277e;hp=d0de73c98dbd4769a496ede4d5a2754dd58530df;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/hacks/nerverot.c b/hacks/nerverot.c index d0de73c9..fe58ea1a 100644 --- a/hacks/nerverot.c +++ b/hacks/nerverot.c @@ -799,7 +799,8 @@ static void setupColormap (struct state *st, XWindowAttributes *xgwa) colors[0].pixel = get_pixel_resource (st->dpy, xgwa->colormap, "background", "Background"); - make_color_ramp (st->dpy, xgwa->colormap, h1, s1, v1, h2, s2, v2, + make_color_ramp (xgwa->screen, xgwa->visual, xgwa->colormap, + h1, s1, v1, h2, s2, v2, colors + 1, &st->colorCount, False, True, False); if (st->colorCount < 1) @@ -1324,6 +1325,9 @@ static const char *nerverot_defaults [] = { "*maxRadius: 25", "*maxNerveRadius: 0.7", "*nervousness: 0.3", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };