X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fmetaballs.c;h=3a2ae73ede3b31d37739c6f318d247226ca50072;hb=39809ded547bdbb08207d3e514950425215b4410;hp=b79dd95d94151550f4fd346a4753791a6e410008;hpb=4ade52359b6eba3621566dac79793a33aa4c915f;p=xscreensaver diff --git a/hacks/metaballs.c b/hacks/metaballs.c index b79dd95d..3a2ae73e 100644 --- a/hacks/metaballs.c +++ b/hacks/metaballs.c @@ -254,6 +254,10 @@ static void Initialize( struct state *st ) if (st->radius >= 128) /* should use UCHAR_MAX? */ st->radius = 127; /* st->dradius should fit in u_char */ + if (st->iWinWidth < 100 || st->iWinHeight < 100) /* tiny window */ + if (st->radius < 20) + st->radius = 20; + st->dradius = st->radius * 2; st->sradius = st->radius * st->radius; @@ -408,7 +412,7 @@ static const char *metaballs_defaults [] = { "*delay: 10000", "*radius: 100", "*delta: 3", -#ifdef USE_IPHONE +#ifdef HAVE_MOBILE "*ignoreRotation: True", #endif 0