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
/
galaxy.c
diff --git
a/hacks/galaxy.c
b/hacks/galaxy.c
index 8003941336a38d3bf319f77191a20df49a887539..b8fbd0c4ce8db57ba5a251fa46b4b8be2ee40706 100644
(file)
--- a/
hacks/galaxy.c
+++ b/
hacks/galaxy.c
@@
-48,7
+48,6
@@
static const char sccsid[] = "@(#)galaxy.c 4.04 97/07/28 xlockmore";
"*ignoreRotation: True \n" \
# define UNIFORM_COLORS
"*ignoreRotation: True \n" \
# define UNIFORM_COLORS
-# define galaxy_handle_event 0
# include "xlockmore.h" /* from the xscreensaver distribution */
#else /* !STANDALONE */
# include "xlock.h" /* from the xlockmore distribution */
# include "xlockmore.h" /* from the xscreensaver distribution */
#else /* !STANDALONE */
# include "xlock.h" /* from the xlockmore distribution */
@@
-314,7
+313,7
@@
init_galaxy(ModeInfo * mi)
}
gp = &universes[MI_SCREEN(mi)];
}
gp = &universes[MI_SCREEN(mi)];
-# ifdef HAVE_
COCOA
/* Don't second-guess Quartz's double-buffering */
+# ifdef HAVE_
JWXYZ
/* Don't second-guess Quartz's double-buffering */
dbufp = False;
# endif
dbufp = False;
# endif
@@
-466,4
+465,16
@@
refresh_galaxy(ModeInfo * mi)
/* Do nothing, it will refresh by itself */
}
/* Do nothing, it will refresh by itself */
}
+ENTRYPOINT Bool
+galaxy_handle_event (ModeInfo *mi, XEvent *event)
+{
+ if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event))
+ {
+ reshape_galaxy (mi, MI_WIDTH(mi), MI_HEIGHT(mi));
+ return True;
+ }
+ return False;
+}
+
+
XSCREENSAVER_MODULE ("Galaxy", galaxy)
XSCREENSAVER_MODULE ("Galaxy", galaxy)