aboutsummaryrefslogtreecommitdiff
path: root/src/process_images.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process_images.c')
-rw-r--r--src/process_images.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process_images.c b/src/process_images.c
index 90f51528..6695db2b 100644
--- a/src/process_images.c
+++ b/src/process_images.c
@@ -50,7 +50,7 @@ static int sum_of_peaks(struct image *image)
int val;
- val = image->data[y+image->height*(image->width-1-x)];
+ val = image->data[x+image->height*y];
if ( val > 1000 ) integr+=val;