X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Finterference.c;h=e1eebb6755071c52dbbda4c4332e5b821cba4507;hp=937b8d7a126b91e23f6163911a770cc31d1c6c6b;hb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;hpb=de460e831dc8578acfa8b72251ab9346c99c1f96 diff --git a/hacks/interference.c b/hacks/interference.c index 937b8d7a..e1eebb67 100644 --- a/hacks/interference.c +++ b/hacks/interference.c @@ -383,7 +383,7 @@ static void do_inter(struct inter_context* c) dx = i*g + g/2 - c->source[k].x; dy = j*g + g/2 - c->source[k].y; dist = sqrt(dx*dx + dy*dy); /* what's the performance penalty here? */ - result += (dist > c->radius ? 0 : c->wave_height[dist]); + result += (dist >= c->radius ? 0 : c->wave_height[dist]); } result %= c->colors;