X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ffireworkx.c;h=faf3745e23a160240ba3f391e85c20861ee86efe;hp=db1c8d8168a658096cea796f3b7b18603f59de57;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/fireworkx.c b/hacks/fireworkx.c index db1c8d81..faf3745e 100644 --- a/hacks/fireworkx.c +++ b/hacks/fireworkx.c @@ -143,8 +143,8 @@ static void render_light_map(struct state *st, fireshell *fs) { for (x = 0; x < st->width; x += 2, v += SHELLCOUNT) { - float f; - f = sqrtf((fs->cx - x) * (fs->cx - x) + (fs->cy - y) * (fs->cy - y)) + 4.0; + double f; + f = sqrt((fs->cx - x) * (fs->cx - x) + (fs->cy - y) * (fs->cy - y)) + 4.0; f = FLASH_ZOOM / f; f += pow(f,0.1) * frand(0.0001); /* dither */ st->light_map[v] = f;