X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fcynosure.c;h=9a4318b7cdce04b3e120891c3b51d5ac7ef8be43;hp=5420d14d4fbfdf99503019cc82c9b1efda8c078a;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/cynosure.c b/hacks/cynosure.c index 5420d14d..9a4318b7 100644 --- a/hacks/cynosure.c +++ b/hacks/cynosure.c @@ -155,7 +155,7 @@ cynosure_init (Display *d, Window w) #else /* !DO_STIPPLE */ st->shadow_gc = XCreateGC(st->dpy, st->window, GCForeground, &gcv); -# ifdef HAVE_COCOA /* allow non-opaque alpha components in pixel values */ +# ifdef HAVE_JWXYZ /* allow non-opaque alpha components in pixel values */ jwxyz_XSetAlphaAllowed (st->dpy, st->shadow_gc, True); # endif @@ -167,14 +167,14 @@ cynosure_init (Display *d, Window w) for (i = 0; i < st->ncolors2; i++) { -# ifdef HAVE_COCOA +# ifdef HAVE_JWXYZ /* give a non-opaque alpha to the shadow colors */ unsigned long pixel = st->colors[i].pixel; unsigned long amask = BlackPixelOfScreen (st->xgwa.screen); unsigned long a = (0x77777777 & amask); pixel = (pixel & (~amask)) | a; st->colors2[i].pixel = pixel; -# else /* !HAVE_COCOA */ +# else /* !HAVE_JWXYZ */ int h; double s, v; rgb_to_hsv (st->colors[i].red, @@ -188,7 +188,7 @@ cynosure_init (Display *d, Window w) &st->colors2[i].blue); st->colors2[i].pixel = st->colors[i].pixel; XAllocColor (st->dpy, st->xgwa.colormap, &st->colors2[i]); -# endif /* !HAVE_COCOA */ +# endif /* !HAVE_JWXYZ */ } } # endif /* !DO_STIPPLE */ @@ -425,7 +425,7 @@ static const char *cynosure_defaults [] = { "*sway: 30", "*tweak: 20", "*gridSize: 12", -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", #endif 0