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
/
nerverot.c
diff --git
a/hacks/nerverot.c
b/hacks/nerverot.c
index d0de73c98dbd4769a496ede4d5a2754dd58530df..fe58ea1a5d1779c8b02157e357904ef1fa19277e 100644
(file)
--- a/
hacks/nerverot.c
+++ b/
hacks/nerverot.c
@@
-799,7
+799,8
@@
static void setupColormap (struct state *st, XWindowAttributes *xgwa)
colors[0].pixel = get_pixel_resource (st->dpy, xgwa->colormap,
"background", "Background");
colors[0].pixel = get_pixel_resource (st->dpy, xgwa->colormap,
"background", "Background");
- make_color_ramp (st->dpy, xgwa->colormap, h1, s1, v1, h2, s2, v2,
+ make_color_ramp (xgwa->screen, xgwa->visual, xgwa->colormap,
+ h1, s1, v1, h2, s2, v2,
colors + 1, &st->colorCount, False, True, False);
if (st->colorCount < 1)
colors + 1, &st->colorCount, False, True, False);
if (st->colorCount < 1)
@@
-1324,6
+1325,9
@@
static const char *nerverot_defaults [] = {
"*maxRadius: 25",
"*maxNerveRadius: 0.7",
"*nervousness: 0.3",
"*maxRadius: 25",
"*maxNerveRadius: 0.7",
"*nervousness: 0.3",
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
+#endif
0
};
0
};