X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fscreenhack.c;h=52344a35a74a319f09fdbea2c9e8b0e787e6d2ed;hb=b81f521c5ad7022ac12db18ca8fcdd9fb063831e;hp=d0c8be829d3b3110794c5c25df3f63a8572479cd;hpb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;p=xscreensaver diff --git a/hacks/screenhack.c b/hacks/screenhack.c index d0c8be82..52344a35 100644 --- a/hacks/screenhack.c +++ b/hacks/screenhack.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-2011 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2012 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 @@ -510,7 +510,7 @@ usleep_and_process_events (Display *dpy, static void screenhack_do_fps (Display *dpy, Window w, fps_state *fpst, void *closure) { - fps_compute (fpst, 0); + fps_compute (fpst, 0, -1); fps_draw (fpst); } @@ -575,7 +575,7 @@ run_screenhack_table (Display *dpy, #ifdef DEBUG_PAIR if (window2) ft->free_cb (dpy, window2, closure2); - if (window2) fps_free (fpst2); + if (fpst2) fps_free (fpst2); #endif }