X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fstarfish.c;h=2e06ee9e297b3853b9ede5f6cb83bf63772a531f;hb=88cfe534a698a0562e81345957a50714af1453bc;hp=6cfee31db8ddcb89a46fdb174cfd36c180056e53;hpb=4ade52359b6eba3621566dac79793a33aa4c915f;p=xscreensaver diff --git a/hacks/starfish.c b/hacks/starfish.c index 6cfee31d..2e06ee9e 100644 --- a/hacks/starfish.c +++ b/hacks/starfish.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997-2013 Jamie Zawinski +/* xscreensaver, Copyright (c) 1997-2015 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -390,6 +390,10 @@ reset_starfish (struct state *st) flags |= GCFillRule; gcv.fill_rule = EvenOddRule; st->gc = XCreateGC (st->dpy, st->window, flags, &gcv); +#ifdef HAVE_COCOA + if (!st->blob_p) + jwxyz_XSetAntiAliasing (st->dpy, st->gc, False); +#endif return make_window_starfish (st); } @@ -469,8 +473,8 @@ starfish_draw (Display *dpy, Window window, void *closure) if (st->duration > 0) { if (st->start_time == 0) - st->start_time = time ((time_t) 0); - now = time ((time_t) 0); + st->start_time = time ((time_t *) 0); + now = time ((time_t *) 0); if (st->start_time + st->duration < now) { st->start_time = now;