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.21.tar.gz
[xscreensaver]
/
hacks
/
crystal.c
diff --git
a/hacks/crystal.c
b/hacks/crystal.c
index 491577a2511944f2827768419f04c1dc35319d55..a1c501d84978099dd886ceb4dd11a3a531996ba0 100644
(file)
--- a/
hacks/crystal.c
+++ b/
hacks/crystal.c
@@
-76,7
+76,6
@@
static const char sccsid[] = "@(#)crystal.c 4.12 98/09/10 xlockmore";
"*ncolors: 100 \n" \
"*fpsSolid: true \n" \
"*ncolors: 100 \n" \
"*fpsSolid: true \n" \
-# define reshape_crystal 0
# define crystal_handle_event 0
# include "xlockmore.h" /* in xscreensaver distribution */
#else /* STANDALONE */
# define crystal_handle_event 0
# include "xlockmore.h" /* in xscreensaver distribution */
#else /* STANDALONE */
@@
-1270,4
+1269,11
@@
init_crystal(ModeInfo * mi)
XSetFunction(display, cryst->gc, GXcopy);
}
XSetFunction(display, cryst->gc, GXcopy);
}
+ENTRYPOINT void
+reshape_crystal(ModeInfo * mi, int width, int height)
+{
+ release_crystal(mi);
+ init_crystal(mi);
+}
+
XSCREENSAVER_MODULE ("Crystal", crystal)
XSCREENSAVER_MODULE ("Crystal", crystal)