X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fdiscrete.c;h=9b0cf597f52912bbc19a570706beafa54bbb8f0e;hp=a78690d033388921cb3c6ebfc34176bd001ba293;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/hacks/discrete.c b/hacks/discrete.c index a78690d0..9b0cf597 100644 --- a/hacks/discrete.c +++ b/hacks/discrete.c @@ -41,7 +41,6 @@ static const char sccsid[] = "@(#)discrete.c 5.00 2000/11/01 xlockmore"; "*ignoreRotation: True \n" \ # define SMOOTH_COLORS -# define discrete_handle_event 0 # include "xlockmore.h" /* in xscreensaver distribution */ # include "erase.h" #else /* STANDALONE */ @@ -457,6 +456,20 @@ refresh_discrete(ModeInfo * mi) MI_CLEARWINDOW(mi); } +ENTRYPOINT Bool +discrete_handle_event (ModeInfo *mi, XEvent *event) +{ + discretestruct *hp = &discretes[MI_SCREEN(mi)]; + if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event)) + { + hp->count = MI_CYCLES(mi); + return True; + } + return False; +} + + + XSCREENSAVER_MODULE ("Discrete", discrete) #endif /* MODE_discrete */