X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fwander.c;h=881b92cc0b479c10de751670b5e0a66cf5b3d895;hp=8fa8995ae043b9eec72b5473c8356b3c57b378c2;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/hacks/wander.c b/hacks/wander.c index 8fa8995a..881b92cc 100644 --- a/hacks/wander.c +++ b/hacks/wander.c @@ -64,12 +64,13 @@ wander_init (Display *dpy, Window window) st->color_map = attributes.colormap; if (st->color_count) { - free_colors (st->dpy, st->color_map, st->colors, st->color_count); + free_colors (attributes.screen, st->color_map, + st->colors, st->color_count); st->color_count = 0; } st->context = XCreateGC (st->dpy, st->window, 0, &values); st->color_count = MAXIMUM_COLOR_COUNT; - make_color_loop (st->dpy, st->color_map, + make_color_loop (attributes.screen, attributes.visual, st->color_map, 0, 1, 1, 120, 1, 1, 240, 1, 1, @@ -240,6 +241,9 @@ static const char *wander_defaults [] = ".reset: 2500000", ".circles: False", ".size: 1", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };