X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fpenetrate.c;h=b2b17e3b4383834f086161719330d4feec77dbda;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=721ee01600f07eb3ef1a622c3cbfd6bb8608335f;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/penetrate.c b/hacks/penetrate.c index 721ee016..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 @@ -949,6 +950,7 @@ static void penetrate_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + XClearWindow (dpy, window); } static Bool @@ -973,7 +975,6 @@ static const char *penetrate_defaults [] = { "*bgrowth: 5", "*lrate: 80", "*smart: False", - "*geometry: 800x500", 0 };