X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fgoop.c;h=62b704ecce82af34fa4348a94d3c4494ebff9eba;hp=0f5c139e34968bbf89536ffa4b3ed067332b4c65;hb=39809ded547bdbb08207d3e514950425215b4410;hpb=4361b69d3178d7fc98d0388f9a223af6c2651aba diff --git a/hacks/goop.c b/hacks/goop.c index 0f5c139e..62b704ec 100644 --- a/hacks/goop.c +++ b/hacks/goop.c @@ -264,6 +264,10 @@ make_layer (Display *dpy, Window window, int width, int height, int nblobs) layer->blobs = (struct blob **) malloc(sizeof(*layer->blobs)*layer->nblobs); blob_max = (width < height ? width : height) / 2; + + if (width < 100 || height < 100) /* tiny window */ + blob_max *= 10; + blob_min = (blob_max * 2) / 3; for (i = 0; i < layer->nblobs; i++){ int j = blob_max - blob_min;