X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Ffluidballs.c;h=3e39af090763e55e2f7e1a1c0327de52498301d6;hb=39809ded547bdbb08207d3e514950425215b4410;hp=7fc43bd2c9d5ae8afb63c668b7de7dbfe8f28a97;hpb=aa75c7476aeaa84cf3abc192b376a8b03c325213;p=xscreensaver diff --git a/hacks/fluidballs.c b/hacks/fluidballs.c index 7fc43bd2..3e39af09 100644 --- a/hacks/fluidballs.c +++ b/hacks/fluidballs.c @@ -296,6 +296,12 @@ fluidballs_init (Display *dpy, Window window) state->max_radius = get_float_resource (dpy, "size", "Size") / 2; if (state->max_radius < 1.0) state->max_radius = 1.0; + if (state->xgwa.width < 100 || state->xgwa.height < 100) /* tiny window */ + { + if (state->max_radius > 5) + state->max_radius = 5; + } + state->random_sizes_p = get_boolean_resource (dpy, "random", "Random"); /* If the initial window size is too small to hold all these balls,