projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.04.2.tar.gz
[xscreensaver]
/
hacks
/
coral.c
diff --git
a/hacks/coral.c
b/hacks/coral.c
index 7621d5eee4818b4b8b830547f9c77fc24535cf46..e17d4951f471db1634077d4ca7a7c6a93bb1507b 100644
(file)
--- a/
hacks/coral.c
+++ b/
hacks/coral.c
@@
-88,8
+88,8
@@
init_coral(Display *dpy, Window window)
for( i = 0; i < seeds; i++ ) {
int x, y;
do {
for( i = 0; i < seeds; i++ ) {
int x, y;
do {
-
x = random() % width
;
-
y = random() % height
;
+
x = 1 + random() % (width - 2)
;
+
y = 1 + random() % (height - 2)
;
} while( getdot(x, y) );
setdot((x-1), (y-1)); setdot(x, (y-1)); setdot((x+1), (y-1));
} while( getdot(x, y) );
setdot((x-1), (y-1)); setdot(x, (y-1)); setdot((x+1), (y-1));