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.26.tar.gz
[xscreensaver]
/
hacks
/
galaxy.c
diff --git
a/hacks/galaxy.c
b/hacks/galaxy.c
index f060591c0eed2a8b6d930d9d21db7caf57e1f63d..8003941336a38d3bf319f77191a20df49a887539 100644
(file)
--- a/
hacks/galaxy.c
+++ b/
hacks/galaxy.c
@@
-43,9
+43,11
@@
static const char sccsid[] = "@(#)galaxy.c 4.04 97/07/28 xlockmore";
# define DEFAULTS "*delay: 20000 \n" \
"*count: -5 \n" \
"*cycles: 250 \n" \
# define DEFAULTS "*delay: 20000 \n" \
"*count: -5 \n" \
"*cycles: 250 \n" \
- "*ncolors: 64 \n"
+ "*ncolors: 64 \n" \
+ "*fpsSolid: true \n" \
+ "*ignoreRotation: True \n" \
+
# define UNIFORM_COLORS
# define UNIFORM_COLORS
-# define reshape_galaxy 0
# define galaxy_handle_event 0
# include "xlockmore.h" /* from the xscreensaver distribution */
#else /* !STANDALONE */
# define galaxy_handle_event 0
# include "xlockmore.h" /* from the xscreensaver distribution */
#else /* !STANDALONE */
@@
-438,6
+440,13
@@
draw_galaxy(ModeInfo * mi)
startover(mi);
}
startover(mi);
}
+ENTRYPOINT void
+reshape_galaxy(ModeInfo * mi, int width, int height)
+{
+ XClearWindow (MI_DISPLAY (mi), MI_WINDOW(mi));
+ init_galaxy (mi);
+}
+
ENTRYPOINT void
release_galaxy(ModeInfo * mi)
{
ENTRYPOINT void
release_galaxy(ModeInfo * mi)
{