X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fphosphor.c;h=1238048976d0e3dd6c8eebb1fa36e52f464acdf9;hp=825ad56931d25ff9858ae5a2744ed8841924cb8e;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/phosphor.c b/hacks/phosphor.c index 825ad569..12380489 100644 --- a/hacks/phosphor.c +++ b/hacks/phosphor.c @@ -17,7 +17,7 @@ # include "config.h" #endif /* HAVE_CONFIG_H */ -#ifndef HAVE_COCOA +#ifndef HAVE_JWXYZ # include #endif @@ -220,7 +220,7 @@ phosphor_init (Display *dpy, Window window) state->gcs = (GC *) calloc (sizeof(GC), state->ticks + 1); { - int ncolors = MAX (0, state->ticks - 3); + int ncolors = MAX (1, state->ticks - 3); XColor *colors = (XColor *) calloc (ncolors, sizeof(XColor)); int h1, h2; double s1, s2, v1, v2; @@ -426,7 +426,7 @@ capture_font_bits (p_state *state) GCCapStyle | GCLineWidth), &state->gcv); -#ifdef HAVE_COCOA +#ifdef HAVE_JWXYZ jwxyz_XSetAntiAliasing (state->dpy, state->gc0, False); jwxyz_XSetAntiAliasing (state->dpy, state->gc1, False); #endif