aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/detector.c b/src/detector.c
index 156cd188..522c4aa5 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -265,15 +265,15 @@ void record_image(struct image *image, int do_poisson)
}
-struct panel *find_panel(struct detector *det, int x, int y)
+struct panel *find_panel(struct detector *det, int fs, int ss)
{
int p;
for ( p=0; p<det->n_panels; p++ ) {
- if ( (x >= det->panels[p].min_fs)
- && (x <= det->panels[p].max_fs)
- && (y >= det->panels[p].min_ss)
- && (y <= det->panels[p].max_ss) ) {
+ if ( (fs >= det->panels[p].min_fs)
+ && (fs <= det->panels[p].max_fs)
+ && (ss >= det->panels[p].min_ss)
+ && (ss <= det->panels[p].max_ss) ) {
return &det->panels[p];
}
}