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.18.tar.gz
[xscreensaver]
/
hacks
/
truchet.c
diff --git
a/hacks/truchet.c
b/hacks/truchet.c
index e34ef5caf75de8ce40f73f36428caaa13618a99c..f21e559966cce3da67d434947e2533320ec7d2d8 100644
(file)
--- a/
hacks/truchet.c
+++ b/
hacks/truchet.c
@@
-53,7
+53,7
@@
static const char *truchet_defaults [] = {
"*erase: True",
"*eraseCount: 25",
"*square: True",
"*erase: True",
"*eraseCount: 25",
"*square: True",
- "*delay:
1
000",
+ "*delay:
400
000",
"*curves: True",
"*angles: True",
"*scroll: False",
"*curves: True",
"*angles: True",
"*scroll: False",
@@
-501,14
+501,17
@@
truchet_draw (Display *dpy, Window window, void *closure)
XCopyArea(st->dpy,st->frame,st->window,st->agc,0,0,st->xgwa.width,st->xgwa.height,0,0);
XCopyArea(st->dpy,st->frame,st->window,st->agc,0,0,st->xgwa.width,st->xgwa.height,0,0);
- /*printf("%d\n",st->delay);*/
- return st->delay*1000;
+ return st->delay;
}
static void
truchet_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
}
static void
truchet_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
+ struct state *st = (struct state *) closure;
+ st->width = w;
+ st->height = h;
+ XGetWindowAttributes (st->dpy, st->window, &st->xgwa);
}
static Bool
}
static Bool