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.22.tar.gz
[xscreensaver]
/
hacks
/
truchet.c
diff --git
a/hacks/truchet.c
b/hacks/truchet.c
index b23b081de89f040add001cad7cbb290ed6600bb2..dda5ac8cf5081bfaf6c7598d52275cd73f009862 100644
(file)
--- a/
hacks/truchet.c
+++ b/
hacks/truchet.c
@@
-61,6
+61,9
@@
static const char *truchet_defaults [] = {
"*anim-delay: 100",
"*anim-step-size: 3",
"*randomize: true",
"*anim-delay: 100",
"*anim-step-size: 3",
"*randomize: true",
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
+#endif
0
};
0
};
@@
-375,6
+378,9
@@
truchet_init (Display *dpy, Window window)
st->frame = XCreatePixmap(st->dpy,st->window, st->xgwa.width+st->overlap, st->xgwa.height+st->overlap, st->xgwa.depth);
st->frame = XCreatePixmap(st->dpy,st->window, st->xgwa.width+st->overlap, st->xgwa.height+st->overlap, st->xgwa.depth);
+ XFillRectangle(st->dpy, st->frame, st->bgc, 0, 0,
+ st->xgwa.width + st->overlap,
+ st->xgwa.height + st->overlap);
return st;
}
return st;
}
@@
-508,6
+514,10
@@
static void
truchet_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
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