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
/
demon.c
diff --git
a/hacks/demon.c
b/hacks/demon.c
index ab7a19b9fc79d77e0a6ebe682e0496406634e253..947134841ec64482f0c09ccb891418bd9085f842 100644
(file)
--- a/
hacks/demon.c
+++ b/
hacks/demon.c
@@
-58,8
+58,8
@@
static const char sccsid[] = "@(#)demon.c 5.00 2000/11/01 xlockmore";
"*size: -7 \n" \
"*ncolors: 64 \n" \
"*fpsSolid: true \n" \
"*size: -7 \n" \
"*ncolors: 64 \n" \
"*fpsSolid: true \n" \
+ "*ignoreRotation: True \n" \
-# define reshape_demon 0
# define demon_handle_event 0
# define UNIFORM_COLORS
# include "xlockmore.h" /* in xscreensaver distribution */
# define demon_handle_event 0
# define UNIFORM_COLORS
# include "xlockmore.h" /* in xscreensaver distribution */
@@
-166,7
+166,6
@@
drawcell(ModeInfo * mi, int col, int row, unsigned char state)
gc = MI_GC(mi);
} else {
XGCValues gcv;
gc = MI_GC(mi);
} else {
XGCValues gcv;
-
#ifdef DO_STIPPLE
gcv.stipple = dp->pixmaps[(state - 1) % (NUMSTIPPLES - 1)];
#endif /* DO_STIPPLE */
#ifdef DO_STIPPLE
gcv.stipple = dp->pixmaps[(state - 1) % (NUMSTIPPLES - 1)];
#endif /* DO_STIPPLE */
@@
-467,6
+466,10
@@
init_demon (ModeInfo * mi)
#endif /* DO_STIPPLE */
free_struct(dp);
#endif /* DO_STIPPLE */
free_struct(dp);
+#ifdef HAVE_COCOA
+ jwxyz_XSetAntiAliasing (MI_DISPLAY(mi), MI_GC(mi), False);
+#endif
+
for (nk = 0; nk < NEIGHBORKINDS; nk++) {
if (neighbors == plots[0][nk]) {
dp->neighbors = plots[0][nk];
for (nk = 0; nk < NEIGHBORKINDS; nk++) {
if (neighbors == plots[0][nk]) {
dp->neighbors = plots[0][nk];
@@
-947,6
+950,14
@@
draw_demon (ModeInfo * mi)
}
}
+ENTRYPOINT void
+reshape_demon(ModeInfo * mi, int width, int height)
+{
+ XClearWindow (MI_DISPLAY (mi), MI_WINDOW(mi));
+ init_demon (mi);
+}
+
+
ENTRYPOINT void
release_demon (ModeInfo * mi)
{
ENTRYPOINT void
release_demon (ModeInfo * mi)
{