X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fpiecewise.c;h=980600c75220782d09e663d3ea2055c4a4aa6d28;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hp=af01a99d32aa2f5746c35356be54ef0c82893cec;hpb=6f5482d73adb0165c0130bb47d852644ab0c4869;p=xscreensaver diff --git a/hacks/piecewise.c b/hacks/piecewise.c index af01a99d..980600c7 100644 --- a/hacks/piecewise.c +++ b/hacks/piecewise.c @@ -500,10 +500,12 @@ static void event_shred(event *e) /******** fringe intersection */ +#if 0 static inline int check_fringe_intersection(double ye, fringe *lo, fringe *hi, double x, double y) { return ye <= y && ((x < lo->c->x) ^ lo->side) && ((x < hi->c->x) ^ hi->side); } +#endif /* 0 */ static void fringe_intersect(struct state *st, event **eq, double y, fringe *lo, fringe *hi) { @@ -813,6 +815,7 @@ static void draw_circle(struct state *st, Drawable w, GC gc, circle *c) /******** toplevel */ +#if 0 static void check_for_leaks (void) { @@ -830,6 +833,7 @@ check_for_leaks (void) } #endif /* HAVE_SBRK */ } +#endif static void * piecewise_init (Display *dd, Window ww) @@ -861,7 +865,9 @@ piecewise_init (Display *dd, Window ww) st->colors[0].pixel = get_pixel_resource(st->dpy, st->xgwa.colormap, "foreground", "Foreground"); } else { - make_color_loop(st->dpy, st->xgwa.colormap, 0, 1, 1, 120, 1, 1, 240, 1, 1, st->colors, &st->ncolors, True, False); + make_color_loop(st->xgwa.screen, st->xgwa.visual, st->xgwa.colormap, + 0, 1, 1, 120, 1, 1, 240, 1, 1, + st->colors, &st->ncolors, True, False); if (st->ncolors < 2) goto MONO; } @@ -932,7 +938,7 @@ piecewise_draw (Display *dpy, Window window, void *closure) st->b = (st->b == st->ba ? st->bb : st->ba); } - check_for_leaks(); +/* check_for_leaks(); */ return st->delay; } @@ -975,6 +981,9 @@ static const char *piecewise_defaults [] = { #ifdef HAVE_DOUBLE_BUFFER_EXTENSION "*useDBE: True", #endif /* HAVE_DOUBLE_BUFFER_EXTENSION */ +#ifdef USE_IPHONE + "*ignoreRotation: True", +#endif 0 };