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.34.tar.gz
[xscreensaver]
/
hacks
/
intermomentary.c
diff --git
a/hacks/intermomentary.c
b/hacks/intermomentary.c
index 0c0ac4c8f5c880eb6793446d5ee5e313ac676512..bcbd19ee3a6dc07f3b67553bdc8e46c7ad3bd670 100644
(file)
--- a/
hacks/intermomentary.c
+++ b/
hacks/intermomentary.c
@@
-224,8
+224,8
@@
draw_glowpoint(struct state *st, Drawable drawable,
float a;
unsigned long c;
float a;
unsigned long c;
- for (i =
-
2; i < 3; i++) {
- for (j =
-
2; j < 3; j++) {
+ for (i =
-
2; i < 3; i++) {
+ for (j =
-
2; j < 3; j++) {
a = 0.8 - i * i * 0.1 - j * j * 0.1;
c = trans_point(st, px+i, py+j, 255, a, f);
a = 0.8 - i * i * 0.1 - j * j * 0.1;
c = trans_point(st, px+i, py+j, 255, a, f);
@@
-419,7
+419,7
@@
intermomentary_init (Display *dpy, Window window)
bgs = fgs;
bgv = fgv / 10.0;
#endif
bgs = fgs;
bgv = fgv / 10.0;
#endif
- make_color_ramp (st->
dpy
, st->xgwa.colormap,
+ make_color_ramp (st->
xgwa.screen, st->xgwa.visual
, st->xgwa.colormap,
bgh, bgs, bgv,
fgh, fgs, fgv,
st->colors, &st->ncolors,
bgh, bgs, bgv,
fgh, fgs, fgv,
st->colors, &st->ncolors,
@@
-554,6
+554,9
@@
static const char *intermomentary_defaults[] = {
"*maxRiders: 40",
"*maxRadius: 100",
"*colors: 256",
"*maxRiders: 40",
"*maxRadius: 100",
"*colors: 256",
+#ifdef USE_IPHONE
+ "*ignoreRotation: True",
+#endif
0
};
0
};