aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-12 20:10:28 -0700
committerThomas White <taw@bitwiz.org.uk>2010-06-12 20:10:28 -0700
commitb834e763c8dc90f8a16446a90da348e085c17d6b (patch)
treef4c493893d59e896253a736b6226bd8ec5a16ccd /src
parent02ec280995a7722f2f52b99a345be534a9db3a72 (diff)
Fix obvious bug
Diffstat (limited to 'src')
-rw-r--r--src/calibrate-detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/calibrate-detector.c b/src/calibrate-detector.c
index 1e6d88aa..bcb8bfcf 100644
--- a/src/calibrate-detector.c
+++ b/src/calibrate-detector.c
@@ -144,7 +144,7 @@ static void *process_image(void *pargsv)
if ( ((y+yp)>=image.height) || ((y+yp)<0) ) continue;
float val = image.data[x+image.width*y];
- pargs->sum[x+pargs->w*y] += val;
+ pargs->sum[(x+xp)+pargs->w*(y+yp)] += val;
}
}