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.36.tar.gz
[xscreensaver]
/
hacks
/
crystal.c
diff --git
a/hacks/crystal.c
b/hacks/crystal.c
index 3acd7caee386f3e211f6e9803ffdf16365d66d0e..9dfa5ea266873d9e953c57d41732aeaf993d6724 100644
(file)
--- a/
hacks/crystal.c
+++ b/
hacks/crystal.c
@@
-77,7
+77,6
@@
static const char sccsid[] = "@(#)crystal.c 4.12 98/09/10 xlockmore";
"*fpsSolid: True \n" \
"*ignoreRotation: True \n" \
"*fpsSolid: True \n" \
"*ignoreRotation: True \n" \
-# define crystal_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 */
@@
-568,7
+567,7
@@
draw_crystal(ModeInfo * mi)
crystalstruct *cryst = &crystals[MI_SCREEN(mi)];
int i;
crystalstruct *cryst = &crystals[MI_SCREEN(mi)];
int i;
-#ifdef HAVE_
COCOA
/* Don't second-guess Quartz's double-buffering */
+#ifdef HAVE_
JWXYZ
/* Don't second-guess Quartz's double-buffering */
XClearWindow(MI_DISPLAY(mi), MI_WINDOW(mi));
#endif
XClearWindow(MI_DISPLAY(mi), MI_WINDOW(mi));
#endif
@@
-1286,4
+1285,15
@@
reshape_crystal(ModeInfo * mi, int width, int height)
init_crystal(mi);
}
init_crystal(mi);
}
+ENTRYPOINT Bool
+crystal_handle_event (ModeInfo *mi, XEvent *event)
+{
+ if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event))
+ {
+ reshape_crystal (mi, MI_WIDTH(mi), MI_HEIGHT(mi));
+ return True;
+ }
+ return False;
+}
+
XSCREENSAVER_MODULE ("Crystal", crystal)
XSCREENSAVER_MODULE ("Crystal", crystal)