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
/
mountain.c
diff --git
a/hacks/mountain.c
b/hacks/mountain.c
index 82d5fce7e82482c219083302113fe95badcf3cf0..29d842a114f19bd7126e5466b3bd61ebea91962c 100644
(file)
--- a/
hacks/mountain.c
+++ b/
hacks/mountain.c
@@
-35,7
+35,6
@@
static const char sccsid[] = "@(#)mountain.c 5.00 2000/11/01 xlockmore";
"*fpsSolid: true \n" \
# define SMOOTH_COLORS
"*fpsSolid: true \n" \
# define SMOOTH_COLORS
-# define mountain_handle_event 0
# include "xlockmore.h" /* in xscreensaver distribution */
#else /* STANDALONE */
# include "xlock.h" /* in xlockmore distribution */
# include "xlockmore.h" /* in xscreensaver distribution */
#else /* STANDALONE */
# include "xlock.h" /* in xlockmore distribution */
@@
-293,6
+292,17
@@
refresh_mountain(ModeInfo * mi)
mp->y = 0;
}
mp->y = 0;
}
+ENTRYPOINT Bool
+mountain_handle_event (ModeInfo *mi, XEvent *event)
+{
+ if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event))
+ {
+ init_mountain (mi);
+ return True;
+ }
+ return False;
+}
+
XSCREENSAVER_MODULE ("Mountain", mountain)
#endif /* MODE_mountain */
XSCREENSAVER_MODULE ("Mountain", mountain)
#endif /* MODE_mountain */