X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fpenetrate.c;h=a58efa21b3bf5883be211667114b98b895b2023b;hb=39809ded547bdbb08207d3e514950425215b4410;hp=0707422bbaac5bf4591c2ccba260d08d43d261a1;hpb=6f5482d73adb0165c0130bb47d852644ab0c4869;p=xscreensaver diff --git a/hacks/penetrate.c b/hacks/penetrate.c index 0707422b..a58efa21 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 @@ -967,6 +968,7 @@ penetrate_free (Display *dpy, Window window, void *closure) static const char *penetrate_defaults [] = { + ".lowrez: true", ".background: black", ".foreground: white", "*fpsTop: true", @@ -974,7 +976,6 @@ static const char *penetrate_defaults [] = { "*bgrowth: 5", "*lrate: 80", "*smart: False", - "*geometry: 800x500", 0 };