X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fpiecewise.c;h=9cfbefdf70c283e581e10aeb9fa92dbae50d51df;hp=af01a99d32aa2f5746c35356be54ef0c82893cec;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/hacks/piecewise.c b/hacks/piecewise.c index af01a99d..9cfbefdf 100644 --- a/hacks/piecewise.c +++ b/hacks/piecewise.c @@ -861,7 +861,9 @@ piecewise_init (Display *dd, Window ww) st->colors[0].pixel = get_pixel_resource(st->dpy, st->xgwa.colormap, "foreground", "Foreground"); } else { - make_color_loop(st->dpy, st->xgwa.colormap, 0, 1, 1, 120, 1, 1, 240, 1, 1, st->colors, &st->ncolors, True, False); + make_color_loop(st->xgwa.screen, st->xgwa.visual, st->xgwa.colormap, + 0, 1, 1, 120, 1, 1, 240, 1, 1, + st->colors, &st->ncolors, True, False); if (st->ncolors < 2) goto MONO; } @@ -975,6 +977,9 @@ static const char *piecewise_defaults [] = { #ifdef HAVE_DOUBLE_BUFFER_EXTENSION "*useDBE: True", #endif /* HAVE_DOUBLE_BUFFER_EXTENSION */ +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };