X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fpetri.c;h=e08beee377b1d25e57aa497ce5ccad08b0219260;hp=860d0349e95e39cb28a293f2f77086e6641bba77;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/hacks/petri.c b/hacks/petri.c index 860d0349..e08beee3 100644 --- a/hacks/petri.c +++ b/hacks/petri.c @@ -141,7 +141,7 @@ static void setup_random_colormap (struct state *st, XWindowAttributes *xgwa) colors[0].pixel = get_pixel_resource (st->dpy, xgwa->colormap, "background", "Background"); - make_random_colormap (st->dpy, xgwa->visual, xgwa->colormap, + make_random_colormap (xgwa->screen, xgwa->visual, xgwa->colormap, colors+1, &ncolors, True, True, 0, True); if (ncolors < 1) { @@ -732,6 +732,9 @@ static const char *petri_defaults [] = { "*originalcolors: false", "*memThrottle: 22M", /* don't malloc more than this much. Scale the pixels up if necessary. */ +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };