projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.jwz.org/xscreensaver/xscreensaver-5.07.tar.gz
[xscreensaver]
/
hacks
/
piecewise.c
diff --git
a/hacks/piecewise.c
b/hacks/piecewise.c
index 09fc4b621609ae0e2e371759a8c4562500f6b59c..336dd5120e69d1a3afc6b8ef4d3679a43f886d18 100644
(file)
--- a/
hacks/piecewise.c
+++ b/
hacks/piecewise.c
@@
-358,7
+358,7
@@
static circle *init_circles(struct state *st, int n, int w, int h)
dr = floor(maxradius * h) - r0 + 1;
for (i=0;i<n;i++) {
dr = floor(maxradius * h) - r0 + 1;
for (i=0;i<n;i++) {
- c[i].r = r0 +
random() % dr
;
+ c[i].r = r0 +
((dr > 0) ? random() % dr : 0)
;
c[i].x = c[i].r + frand(w - 1 - 2 * c[i].r);
c[i].y = c[i].r + frand(h - 1 - 2 * c[i].r);
c[i].visible = random() & 1;
c[i].x = c[i].r + frand(w - 1 - 2 * c[i].r);
c[i].y = c[i].r + frand(h - 1 - 2 * c[i].r);
c[i].visible = random() & 1;
@@
-960,7
+960,7
@@
piecewise_free (Display *dpy, Window window, void *closure)
static const char *piecewise_defaults [] = {
".background: black",
".foreground: white",
static const char *piecewise_defaults [] = {
".background: black",
".foreground: white",
- "*delay:
5
000",
+ "*delay:
10
000",
"*speed: 15",
"*ncolors: 256",
".colorspeed: 10",
"*speed: 15",
"*ncolors: 256",
".colorspeed: 10",