aboutsummaryrefslogtreecommitdiffstats
path: root/src/scale.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scale.c')
-rw-r--r--src/scale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scale.c b/src/scale.c
index e7cc41c..5036738 100644
--- a/src/scale.c
+++ b/src/scale.c
@@ -37,7 +37,7 @@ struct timeval t1;
#define YITER \
const unsigned int bufy = (y << 10) * img->bufheight / ximg->height;\
const unsigned int v = (bufy & 1023);\
- const unsigned int vr = 1023^(bufy & 1023);\
+ const unsigned int vr = 1023^v;\
ibuf = &img->buf[y * img->bufheight / ximg->height * img->bufwidth * 3];\
ibufn = ibuf + dy;