X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fhalftone.c;h=84503c1fc77ee07d90109429886b1664e79d4d3a;hp=5cd78b504991fbbf379269055b3e26a92432fefb;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/hacks/halftone.c b/hacks/halftone.c index 5cd78b50..84503c1f 100644 --- a/hacks/halftone.c +++ b/hacks/halftone.c @@ -191,7 +191,7 @@ halftone_init (Display *dpy, Window window) halftone->ncolors = get_integer_resource (dpy, "colors", "Colors"); if (halftone->ncolors < 4) halftone->ncolors = 4; halftone->colors = (XColor *) calloc(halftone->ncolors, sizeof(XColor)); - make_smooth_colormap (dpy, attrs.visual, attrs.colormap, + make_smooth_colormap (attrs.screen, attrs.visual, attrs.colormap, halftone->colors, &halftone->ncolors, True, 0, False); halftone->color0 = 0; @@ -373,6 +373,9 @@ static const char *halftone_defaults [] = { "*sizeFactor: 1.5", "*colors: 200", "*cycleSpeed: 10", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };