diff options
author | Thomas White <taw@physics.org> | 2011-03-23 15:23:36 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:21 +0100 |
commit | f56ce1b9c6d6b5c9b365354585d32c5ead4869d6 (patch) | |
tree | 3a6c4a765238462ce26ef75b065ae61cd02ad036 /src/detector.c | |
parent | 683220d0f8038018d7e63ebff56611a645b346af (diff) |
More s/x/fs/, s/y/ss/
Diffstat (limited to 'src/detector.c')
-rw-r--r-- | src/detector.c | 10 |
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]; } } |