X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fhyperball.c;h=cae6360900cff2dee24b1500f019d4c039307f25;hb=c85f503f5793839a6be4c818332aca4a96927bb2;hp=013f8925e65ab83b79c911c3b88f99b18b4eb60a;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/hyperball.c b/hacks/hyperball.c index 013f8925..cae63609 100644 --- a/hacks/hyperball.c +++ b/hacks/hyperball.c @@ -227,7 +227,7 @@ hyperball_draw (Display *dpy, Window window, void *closure) if (icon || !(hs->roted | resize)) goto skip1; -#ifdef HAVE_COCOA /* Don't second-guess Quartz's double-buffering */ +#ifdef HAVE_JWXYZ /* Don't second-guess Quartz's double-buffering */ XClearWindow (dpy, window); #endif @@ -337,9 +337,7 @@ hyperball_draw (Display *dpy, Window window, void *closure) int q_y; GC erase_gc; GC draw_gc; - int old_sum; int new_sum; - int old_dep; int new_dep; ip = li_ptr->li_ip; @@ -362,11 +360,8 @@ hyperball_draw (Display *dpy, Window window, void *closure) else { GC *row; - - old_sum = sp->old_dep + sq->old_dep; new_sum = sp->new_dep + sq->new_dep; row = &hs->hs_color_gcs[col][0]; - old_dep = old_sum >> 6; new_dep = new_sum >> 6; erase_gc = hs->black_gc; draw_gc = row[new_dep]; @@ -498,7 +493,7 @@ hyperball_event (Display *dpy, Window win, void *closure, XEvent *event) } break; -#ifndef HAVE_COCOA +#ifndef HAVE_JWXYZ case UnmapNotify: hs->hs_icon = 1; hs->hs_redraw = 0; @@ -2379,6 +2374,7 @@ static const char *hyperball_defaults[] = "*zw: 0", ".background: black", ".foreground: white", + "*fpsSolid: true", "*color00:#FF66BE", "*color10:#FFA300", "*color20:#BEDC00",