mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-27 14:00:45 -04:00
17 lines
573 B
Plaintext
17 lines
573 B
Plaintext
$NetBSD: patch-aj,v 1.4 2013/07/22 14:24:17 drochner Exp $
|
|
|
|
--- hacks/fireworkx.c.orig 2013-07-05 18:54:55.000000000 +0000
|
|
+++ hacks/fireworkx.c
|
|
@@ -141,7 +141,11 @@ static void render_light_map(struct stat
|
|
for (x = 0; x < st->width; x += 2, v += SHELLCOUNT)
|
|
{
|
|
float f;
|
|
+#ifdef HAVE_SQRTF
|
|
f = sqrtf((fs->cx - x) * (fs->cx - x) + (fs->cy - y) * (fs->cy - y)) + 4.0;
|
|
+#else
|
|
+ f = sqrt((fs->cx - x) * (fs->cx - x) + (fs->cy - y) * (fs->cy - y)) + 4.0;
|
|
+#endif
|
|
f = FLASH_ZOOM / f;
|
|
f += pow(f,0.1) * frand(0.0001); /* dither */
|
|
st->light_map[v] = f;
|