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.36.tar.gz
[xscreensaver]
/
hacks
/
thornbird.c
diff --git
a/hacks/thornbird.c
b/hacks/thornbird.c
index 28a98db2404b475fa6be33ad4459d833d104bbef..c2edeb7c90f2d21ae0f5dfa84378ae733cd8e528 100644
(file)
--- a/
hacks/thornbird.c
+++ b/
hacks/thornbird.c
@@
-34,9
+34,11
@@
static const char sccsid[] = "@(#)thornbird.c 5.00 2000/11/01 xlockmore";
#define DEFAULTS "*delay: 10000 \n" \
"*count: 100 \n" \
"*cycles: 400 \n" \
#define DEFAULTS "*delay: 10000 \n" \
"*count: 100 \n" \
"*cycles: 400 \n" \
- "*ncolors: 64 \n"
+ "*ncolors: 64 \n" \
+ "*fpsSolid: true \n" \
+ "*ignoreRotation: True \n" \
+
# define BRIGHT_COLORS
# define BRIGHT_COLORS
-# define reshape_thornbird 0
# define thornbird_handle_event 0
# include "xlockmore.h" /* in xscreensaver distribution */
#else /* STANDALONE */
# define thornbird_handle_event 0
# include "xlockmore.h" /* in xscreensaver distribution */
#else /* STANDALONE */
@@
-220,6
+222,7
@@
draw_thornbird(ModeInfo * mi)
MI_IS_DRAWN(mi) = True;
MI_IS_DRAWN(mi) = True;
+ if (MI_COUNT(mi) < 1) MI_COUNT(mi) = 1;
if (hp->pointBuffer[erase] == NULL) {
if ((hp->pointBuffer[erase] = (XPoint *) malloc(MI_COUNT(mi) *
sizeof (XPoint))) == NULL) {
if (hp->pointBuffer[erase] == NULL) {
if ((hp->pointBuffer[erase] = (XPoint *) malloc(MI_COUNT(mi) *
sizeof (XPoint))) == NULL) {
@@
-246,7
+249,13
@@
draw_thornbird(ModeInfo * mi)
XDrawPoints(dsp, win, gc, hp->pointBuffer[current],
batchcount, CoordModeOrigin);
hp->inc++;
XDrawPoints(dsp, win, gc, hp->pointBuffer[current],
batchcount, CoordModeOrigin);
hp->inc++;
+}
+ENTRYPOINT void
+reshape_thornbird(ModeInfo * mi, int width, int height)
+{
+ XClearWindow (MI_DISPLAY (mi), MI_WINDOW(mi));
+ init_thornbird (mi);
}
ENTRYPOINT void
}
ENTRYPOINT void