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
/
goop.c
diff --git
a/hacks/goop.c
b/hacks/goop.c
index 0f5c139e34968bbf89536ffa4b3ed067332b4c65..62b704ecce82af34fa4348a94d3c4494ebff9eba 100644
(file)
--- 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;
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;
blob_min = (blob_max * 2) / 3;
for (i = 0; i < layer->nblobs; i++){
int j = blob_max - blob_min;