X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fhopalong.c;h=e0ecffb89cb64b770b0fb2f97c802826aec6cfda;hb=refs%2Fremotes%2Fgithub%2Fmaster2;hp=f97f54bd0d7d86d762999436593d96ac75db7231;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/hopalong.c b/hacks/hopalong.c index f97f54bd..e0ecffb8 100644 --- a/hacks/hopalong.c +++ b/hacks/hopalong.c @@ -55,10 +55,12 @@ static const char sccsid[] = "@(#)hop.c 5.00 2000/11/01 xlockmore"; #define DEFAULTS "*delay: 10000 \n" \ "*count: 1000 \n" \ "*cycles: 2500 \n" \ - "*ncolors: 200 \n" + "*ncolors: 200 \n" \ + "*fpsSolid: true \n" \ + "*ignoreRotation: True \n" \ + # define SMOOTH_COLORS # define reshape_hop 0 -# define hop_handle_event 0 # include "xlockmore.h" /* in xscreensaver distribution */ # include "erase.h" #else /* STANDALONE */ @@ -572,6 +574,20 @@ refresh_hop(ModeInfo * mi) MI_CLEARWINDOW(mi); } +ENTRYPOINT Bool +hop_handle_event (ModeInfo *mi, XEvent *event) +{ + if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event)) + { + MI_CLEARWINDOW(mi); + init_hop (mi); + return True; + } + return False; +} + + + XSCREENSAVER_MODULE_2 ("Hopalong", hopalong, hop) #endif /* MODE_hop */