X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fspotlight.c;h=7224ee855406918ed1e49c1b6a0a6cd09e364d24;hb=39809ded547bdbb08207d3e514950425215b4410;hp=61f996d15fd2cc0c846915c2ad1941c1e0c780c1;hpb=d5186197bc394e10a4402f7f6d23fbb14103bc50;p=xscreensaver diff --git a/hacks/spotlight.c b/hacks/spotlight.c index 61f996d1..7224ee85 100644 --- a/hacks/spotlight.c +++ b/hacks/spotlight.c @@ -144,7 +144,7 @@ spotlight_init (Display *dpy, Window window) st->first_time = 1; /* create buffer to reduce flicker */ -#ifdef HAVE_COCOA /* Don't second-guess Quartz's double-buffering */ +#ifdef HAVE_JWXYZ /* Don't second-guess Quartz's double-buffering */ st->buffer = 0; #else st->buffer = XCreatePixmap(st->dpy, st->window, st->sizex, st->sizey, xgwa.depth); @@ -180,12 +180,6 @@ spotlight_init (Display *dpy, Window window) st->off = random(); -#ifdef DEBUG - /* create GC with white fg */ - gcv.foreground = fg; - st->white_gc = XCreateGC(st->dpy, st->window, gcflags, &gcv); -#endif - /* blank out screen */ XFillRectangle(st->dpy, st->window, st->window_gc, 0, 0, st->sizex, st->sizey); @@ -331,7 +325,7 @@ static const char *spotlight_defaults [] = { "*delay: 10000", "*duration: 120", "*radius: 125", -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", "*rotateImages: True", #endif