X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fccurve.c;h=057fed0b256a4aca37c03664da60e9f975a46c7a;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=6f547bea4f51ed2b46849d14e64455081a86364a;hpb=6f5482d73adb0165c0130bb47d852644ab0c4869;p=xscreensaver diff --git a/hacks/ccurve.c b/hacks/ccurve.c index 6f547bea..057fed0b 100644 --- a/hacks/ccurve.c +++ b/hacks/ccurve.c @@ -701,7 +701,8 @@ ccurve_init (Display *dpy, Window window) st->context = XCreateGC (st->dpy, st->window, GCForeground | GCBackground, &values); st->color_count = MAXIMUM_COLOR_COUNT; - make_color_loop (st->dpy, st->color_map, + make_color_loop (hack_attributes.screen, hack_attributes.visual, + st->color_map, 0, 1, 1, 120, 1, 1, 240, 1, 1, @@ -826,6 +827,12 @@ ccurve_reshape (Display *dpy, Window window, void *closure, static Bool ccurve_event (Display *dpy, Window window, void *closure, XEvent *event) { + struct state *st = (struct state *) closure; + if (screenhack_event_helper (dpy, window, event)) + { + st->draw_index = 0; + return True; + } return False; } @@ -842,6 +849,9 @@ static const char *ccurve_defaults [] = ".delay: 3", ".pause: 0.4", ".limit: 200000", +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };