X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fpenetrate.c;h=b2b17e3b4383834f086161719330d4feec77dbda;hp=611cf84e099e7298a9fc3cccb1609f09297a332e;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/penetrate.c b/hacks/penetrate.c index 611cf84e..b2b17e3b 100644 --- a/hacks/penetrate.c +++ b/hacks/penetrate.c @@ -172,10 +172,11 @@ static void launch (struct state *st, int xlim, int ylim, int src) m->splits = 0; if (m->jenis < 50) { int j = ylim * 0.4; - if (j) + if (j) { m->splits = random() % j; if (m->splits < ylim * 0.08) m->splits = 0; + } } /* special if we're from another missile */ @@ -436,7 +437,7 @@ penetrate_init (Display *dpy, Window window) gcv.foreground = get_pixel_resource(st->dpy, st->cmap, "background", "Background"); st->erase_gc = XCreateGC(st->dpy, st->window, GCForeground, &gcv); -# ifdef HAVE_COCOA +# ifdef HAVE_JWXYZ jwxyz_XSetAntiAliasing (st->dpy, st->erase_gc, False); jwxyz_XSetAntiAliasing (st->dpy, st->draw_gc, False); # endif