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.35.tar.gz
[xscreensaver]
/
hacks
/
starfish.c
diff --git
a/hacks/starfish.c
b/hacks/starfish.c
index 2e06ee9e297b3853b9ede5f6cb83bf63772a531f..5fa3395e9aa979f72ab07752df1a47f326096185 100644
(file)
--- a/
hacks/starfish.c
+++ b/
hacks/starfish.c
@@
-71,7
+71,6
@@
make_starfish (struct state *st, int maxx, int maxy, int size)
{
struct starfish *s = (struct starfish *) calloc(1, sizeof(*s));
int i;
{
struct starfish *s = (struct starfish *) calloc(1, sizeof(*s));
int i;
- int mid;
s->blob_p = st->blob_p;
s->elasticity = SCALE * get_float_resource (st->dpy, "thickness", "Thickness");
s->blob_p = st->blob_p;
s->elasticity = SCALE * get_float_resource (st->dpy, "thickness", "Thickness");
@@
-121,7
+120,6
@@
make_starfish (struct state *st, int maxx, int maxy, int size)
s->min_r = 0;
if (s->min_r < (5*SCALE)) s->min_r = (5*SCALE);
s->min_r = 0;
if (s->min_r < (5*SCALE)) s->min_r = (5*SCALE);
- mid = ((s->min_r + s->max_r) / 2);
s->x = maxx/2;
s->y = maxy/2;
s->x = maxx/2;
s->y = maxy/2;
@@
-390,7
+388,7
@@
reset_starfish (struct state *st)
flags |= GCFillRule;
gcv.fill_rule = EvenOddRule;
st->gc = XCreateGC (st->dpy, st->window, flags, &gcv);
flags |= GCFillRule;
gcv.fill_rule = EvenOddRule;
st->gc = XCreateGC (st->dpy, st->window, flags, &gcv);
-#ifdef HAVE_
COCOA
+#ifdef HAVE_
JWXYZ
if (!st->blob_p)
jwxyz_XSetAntiAliasing (st->dpy, st->gc, False);
#endif
if (!st->blob_p)
jwxyz_XSetAntiAliasing (st->dpy, st->gc, False);
#endif
@@
-532,7
+530,7
@@
static const char *starfish_defaults [] = {
"*duration: 30",
"*delay2: 5",
"*mode: random",
"*duration: 30",
"*delay2: 5",
"*mode: random",
-#ifdef
USE_IPHON
E
+#ifdef
HAVE_MOBIL
E
"*ignoreRotation: True",
#endif
0
"*ignoreRotation: True",
#endif
0