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
/
xrayswarm.c
diff --git
a/hacks/xrayswarm.c
b/hacks/xrayswarm.c
index 9b9faef799d9b53658c5c9bbade18c6a6cb63def..d36055de7608386a99912173d7309626dc4fb647 100644
(file)
--- a/
hacks/xrayswarm.c
+++ b/
hacks/xrayswarm.c
@@
-63,6
+63,9
@@
static const char *xrayswarm_defaults [] ={
".background: black",
"*delay: 20000",
"*fpsSolid: true",
".background: black",
"*delay: 20000",
"*fpsSolid: true",
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
+#endif
0
};
0
};
@@
-1196,6
+1199,12
@@
static void
xrayswarm_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
xrayswarm_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
+ struct state *st = (struct state *) closure;
+ st->xsize = w;
+ st->ysize = h;
+ st->xc = st->xsize >> 1;
+ st->yc = st->ysize >> 1;
+ st->maxy = st->ysize/(float)st->xsize;
}
static Bool
}
static Bool