projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.38.tar.gz
[xscreensaver]
/
hacks
/
starfish.c
diff --git
a/hacks/starfish.c
b/hacks/starfish.c
index 5fa3395e9aa979f72ab07752df1a47f326096185..5e94144401a4d51ce67e681f8481a2ca0b720534 100644
(file)
--- 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;
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);
}
return make_starfish (st, xgwa.width, xgwa.height, size);
}