-/* xscreensaver, Copyright (c) 1997-2013 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1997-2015 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
{
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->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;
size = (xgwa.width < xgwa.height ? xgwa.width : xgwa.height);
if (st->blob_p) size /= 2;
else size *= 1.3;
+
+ if (xgwa.width < 100 || xgwa.height < 100) /* tiny window */
+ {
+ size = (xgwa.width > xgwa.height ? xgwa.width : xgwa.height);
+ if (size < 100) size = 100;
+ }
+
return make_starfish (st, xgwa.width, xgwa.height, size);
}
flags |= GCFillRule;
gcv.fill_rule = EvenOddRule;
st->gc = XCreateGC (st->dpy, st->window, flags, &gcv);
+#ifdef HAVE_JWXYZ
+ if (!st->blob_p)
+ jwxyz_XSetAntiAliasing (st->dpy, st->gc, False);
+#endif
return make_window_starfish (st);
}
"*duration: 30",
"*delay2: 5",
"*mode: random",
-#ifdef USE_IPHONE
+#ifdef HAVE_MOBILE
"*ignoreRotation: True",
#endif
0