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.35.tar.gz
[xscreensaver]
/
hacks
/
loop.c
diff --git
a/hacks/loop.c
b/hacks/loop.c
index 7a998738f73b2de0471bd6b9dfad443c3c0463fe..f5ce869d36ec60487bce41f64620c4d9b4b41e9b 100644
(file)
--- a/
hacks/loop.c
+++ b/
hacks/loop.c
@@
-79,7
+79,7
@@
static const char sccsid[] = "@(#)loop.c 5.01 2000/03/15 xlockmore";
there is handedness at both the initial condition and the transition rule.
*/
there is handedness at both the initial condition and the transition rule.
*/
-#ifndef HAVE_
COCOA
+#ifndef HAVE_
JWXYZ
# define DO_STIPPLE
#endif
# define DO_STIPPLE
#endif
@@
-91,9
+91,9
@@
static const char sccsid[] = "@(#)loop.c 5.01 2000/03/15 xlockmore";
"*size: -12 \n" \
"*ncolors: 15 \n" \
"*fpsSolid: true \n" \
"*size: -12 \n" \
"*ncolors: 15 \n" \
"*fpsSolid: true \n" \
+ "*ignoreRotation: True \n" \
# define UNIFORM_COLORS
# define UNIFORM_COLORS
-# define loop_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 */
@@
-1698,6
+1698,17
@@
refresh_loop (ModeInfo * mi)
lp->redrawpos = lp->by * lp->ncols + lp->bx;
}
lp->redrawpos = lp->by * lp->ncols + lp->bx;
}
+ENTRYPOINT Bool
+loop_handle_event (ModeInfo *mi, XEvent *event)
+{
+ if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event))
+ {
+ reshape_loop (mi, MI_WIDTH(mi), MI_HEIGHT(mi));
+ return True;
+ }
+ return False;
+}
+
XSCREENSAVER_MODULE ("Loop", loop)
#endif /* MODE_loop */
XSCREENSAVER_MODULE ("Loop", loop)
#endif /* MODE_loop */