diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-06-12 20:10:28 -0700 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-06-12 20:10:28 -0700 |
commit | b834e763c8dc90f8a16446a90da348e085c17d6b (patch) | |
tree | f4c493893d59e896253a736b6226bd8ec5a16ccd /src | |
parent | 02ec280995a7722f2f52b99a345be534a9db3a72 (diff) |
Fix obvious bug
Diffstat (limited to 'src')
-rw-r--r-- | src/calibrate-detector.c | 2 |
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; } } |