X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fhopalong.c;h=e0ecffb89cb64b770b0fb2f97c802826aec6cfda;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=09614458f5e46ca1e92f152f0ed504e93298f51e;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/hopalong.c b/hacks/hopalong.c index 09614458..e0ecffb8 100644 --- a/hacks/hopalong.c +++ b/hacks/hopalong.c @@ -57,10 +57,10 @@ static const char sccsid[] = "@(#)hop.c 5.00 2000/11/01 xlockmore"; "*cycles: 2500 \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 */ @@ -574,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 */