diff options
Diffstat (limited to 'src')
-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 e3fec53d..ca86f28c 100644 --- a/src/render.c +++ b/src/render.c @@ -49,7 +49,7 @@ static void *render_bin(int16_t *in, int inw, int inh, for ( xb=0; xb<binning; xb++ ) { for ( yb=0; yb<binning; yb++ ) { - total += in[binning*x+xb + (binning*y+yb)*(w*binning)]; + total += in[binning*x+xb + (binning*y+yb)*inw]; } } |