X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fmoire2.c;h=69bfe696089af92d48fd08ef122e4c3a606fb305;hp=441a371371bda38ba5c39d75cdfca3e1e16f6e2d;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/hacks/moire2.c b/hacks/moire2.c index 441a3713..69bfe696 100644 --- a/hacks/moire2.c +++ b/hacks/moire2.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997, 1998, 2006 Jamie Zawinski +/* xscreensaver, Copyright (c) 1997-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 @@ -64,7 +64,8 @@ moire2_init_1 (struct state *st) if (mono_p) ; else - make_smooth_colormap (st->dpy, xgwa.visual, xgwa.colormap, st->colors, &st->ncolors, + make_smooth_colormap (xgwa.screen, xgwa.visual, xgwa.colormap, + st->colors, &st->ncolors, True, 0, True); st->bg_pixel = get_pixel_resource(st->dpy, @@ -328,6 +329,9 @@ static const char *moire2_defaults [] = { "*thickness: 0", "*colors: 150", "*colorShift: 5", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif #ifdef HAVE_DOUBLE_BUFFER_EXTENSION /* Off by default, since it slows it down a lot, and the flicker isn't really