X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fpiecewise.c;h=6e6e484f1db9fadf0af19d27cd2be1f8851bac21;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=9cfbefdf70c283e581e10aeb9fa92dbae50d51df;hpb=4ade52359b6eba3621566dac79793a33aa4c915f;p=xscreensaver diff --git a/hacks/piecewise.c b/hacks/piecewise.c index 9cfbefdf..6e6e484f 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) @@ -844,7 +848,7 @@ piecewise_init (Display *dd, Window ww) st->colorspeed = get_integer_resource(st->dpy, "colorspeed", "Integer"); st->dbuf = get_boolean_resource(st->dpy, "doubleBuffer", "Boolean"); -# ifdef HAVE_COCOA /* Don't second-guess Quartz's double-buffering */ +# ifdef HAVE_JWXYZ /* Don't second-guess Quartz's double-buffering */ st->dbuf = False; # endif @@ -934,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; } @@ -977,7 +981,7 @@ static const char *piecewise_defaults [] = { #ifdef HAVE_DOUBLE_BUFFER_EXTENSION "*useDBE: True", #endif /* HAVE_DOUBLE_BUFFER_EXTENSION */ -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", #endif 0