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
/
strange.c
diff --git
a/hacks/strange.c
b/hacks/strange.c
index 604f471b9af5d7e6125f55e10d3e066b15122d85..b1739acd534a7977e46bdd7c05de57c5325261d1 100644
(file)
--- a/
hacks/strange.c
+++ b/
hacks/strange.c
@@
-38,11
+38,11
@@
static const char sccsid[] = "@(#)strange.c 5.00 2000/11/01 xlockmore";
# define MODE_strange
# define DEFAULTS "*delay: 10000 \n" \
"*ncolors: 100 \n" \
# define MODE_strange
# define DEFAULTS "*delay: 10000 \n" \
"*ncolors: 100 \n" \
- "*fpsSolid: True \n"
+ "*fpsSolid: True \n" \
+ "*ignoreRotation: True \n" \
# define SMOOTH_COLORS
# define refresh_strange 0
# define SMOOTH_COLORS
# define refresh_strange 0
-# define strange_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 */
@@
-82,7
+82,7
@@
ModStruct strange_description =
"Shows strange attractors", 0, NULL};
#endif
"Shows strange attractors", 0, NULL};
#endif
-#ifdef HAVE_
COCOA
+#ifdef HAVE_
JWXYZ
# define NO_DBUF
#endif
# define NO_DBUF
#endif
@@
-577,18
+577,18
@@
init_strange(ModeInfo * mi)
gcv.foreground = 0;
gcv.background = 0;
gcv.foreground = 0;
gcv.background = 0;
-#ifndef HAVE_
COCOA
+#ifndef HAVE_
JWXYZ
gcv.graphics_exposures = False;
gcv.graphics_exposures = False;
-#endif /* HAVE_
COCOA
*/
+#endif /* HAVE_
JWXYZ
*/
gcv.function = GXcopy;
if (Attractor->dbuf_gc != None)
XFreeGC(display, Attractor->dbuf_gc);
if ((Attractor->dbuf_gc = XCreateGC(display, Attractor->dbuf,
gcv.function = GXcopy;
if (Attractor->dbuf_gc != None)
XFreeGC(display, Attractor->dbuf_gc);
if ((Attractor->dbuf_gc = XCreateGC(display, Attractor->dbuf,
-#ifndef HAVE_
COCOA
+#ifndef HAVE_
JWXYZ
GCGraphicsExposures |
GCGraphicsExposures |
-#endif /* HAVE_
COCOA
*/
+#endif /* HAVE_
JWXYZ
*/
GCFunction | GCForeground | GCBackground,
&gcv)) == None) {
XFreePixmap(display, Attractor->dbuf);
GCFunction | GCForeground | GCBackground,
&gcv)) == None) {
XFreePixmap(display, Attractor->dbuf);
@@
-696,6
+696,18
@@
release_strange(ModeInfo * mi)
}
}
}
}
+ENTRYPOINT Bool
+strange_handle_event (ModeInfo *mi, XEvent *event)
+{
+ if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event))
+ {
+ reshape_strange (mi, MI_WIDTH(mi), MI_HEIGHT(mi));
+ return True;
+ }
+ return False;
+}
+
+
XSCREENSAVER_MODULE ("Strange", strange)
#endif /* MODE_strange */
XSCREENSAVER_MODULE ("Strange", strange)
#endif /* MODE_strange */