X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fcoral.c;fp=hacks%2Fcoral.c;h=e17d4951f471db1634077d4ca7a7c6a93bb1507b;hb=a94197e76a5dea5cb60542840809d6c20d0abbf3;hp=7621d5eee4818b4b8b830547f9c77fc24535cf46;hpb=8eb2873d7054e705c4e83f22d18c40946a9e2529;p=xscreensaver diff --git a/hacks/coral.c b/hacks/coral.c index 7621d5ee..e17d4951 100644 --- 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 { - 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));