X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fstarfish.c;h=5e94144401a4d51ce67e681f8481a2ca0b720534;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hp=5fa3395e9aa979f72ab07752df1a47f326096185;hpb=aa75c7476aeaa84cf3abc192b376a8b03c325213;p=xscreensaver diff --git a/hacks/starfish.c b/hacks/starfish.c index 5fa3395e..5e941444 100644 --- a/hacks/starfish.c +++ b/hacks/starfish.c @@ -322,6 +322,13 @@ make_window_starfish (struct state *st) 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); }