projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.30.tar.gz
[xscreensaver]
/
hacks
/
hopalong.c
diff --git
a/hacks/hopalong.c
b/hacks/hopalong.c
index 10e2656d937b940e6603d636639a026362e7dd99..e0ecffb89cb64b770b0fb2f97c802826aec6cfda 100644
(file)
--- a/
hacks/hopalong.c
+++ b/
hacks/hopalong.c
@@
-61,7
+61,6
@@
static const char sccsid[] = "@(#)hop.c 5.00 2000/11/01 xlockmore";
# define SMOOTH_COLORS
# define reshape_hop 0
# define SMOOTH_COLORS
# define reshape_hop 0
-# define hop_handle_event 0
# include "xlockmore.h" /* in xscreensaver distribution */
# include "erase.h"
#else /* STANDALONE */
# include "xlockmore.h" /* in xscreensaver distribution */
# include "erase.h"
#else /* STANDALONE */
@@
-575,6
+574,20
@@
refresh_hop(ModeInfo * mi)
MI_CLEARWINDOW(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 */
XSCREENSAVER_MODULE_2 ("Hopalong", hopalong, hop)
#endif /* MODE_hop */