From 7d8662ffe897dc2438141ecc8848863bad9b9d92 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 26 Feb 2010 16:47:27 +0100 Subject: Move water calculation to diffraction.c, and work out the consequences --- src/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render.c') diff --git a/src/render.c b/src/render.c index b02469f6..c91a2658 100644 --- a/src/render.c +++ b/src/render.c @@ -52,7 +52,7 @@ static void *render_bin(float *in, int inw, int inh, int binning, float *maxp) } } - data[x+w*y] = total / (binning * binning); + data[x+w*y] = total / ((double)binning * (double)binning); if ( data[x+w*y] > max ) max = data[x+w*y]; } -- cgit v1.2.3