diff options
author | Thomas White <taw@physics.org> | 2010-02-26 16:47:27 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-02-26 16:54:59 +0100 |
commit | 7d8662ffe897dc2438141ecc8848863bad9b9d92 (patch) | |
tree | 46af84456de347220cfcb363c3b4e4ef70362f40 /src/render.c | |
parent | 86dd71e8640394f4e4f5aa71b2e5f51f5fea4a11 (diff) |
Move water calculation to diffraction.c, and work out the consequences
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |