diff options
author | Thomas White <taw@physics.org> | 2011-03-14 17:22:03 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:19 +0100 |
commit | dbb76151b8d3656223a42661869c60cc5e4d809e (patch) | |
tree | a432c3b85d414f660d674cca60d178935f2fa287 /src/mosflm.c | |
parent | 5bc39aff3711410f15107e4d5f47e607aa018fd7 (diff) |
More of s/x/fs/, s/y/ss/
Diffstat (limited to 'src/mosflm.c')
-rw-r--r-- | src/mosflm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mosflm.c b/src/mosflm.c index 0fc8c695..fe6cfca7 100644 --- a/src/mosflm.c +++ b/src/mosflm.c @@ -205,14 +205,14 @@ static void write_spt(struct image *image, const char *filename) f = image_get_feature(image->features, i); if ( f == NULL ) continue; - p = find_panel(image->det, f->x, f->y); + p = find_panel(image->det, f->fs, f->ss); if ( p == NULL ) continue; pix = 1000.0/p->res; /* pixel size in mm */ height = f->intensity; - xs = (f->x-p->min_fs)*p->fsx + (f->y-p->min_ss)*p->ssx; - ys = (f->x-p->min_fs)*p->fsy + (f->y-p->min_ss)*p->ssy; + xs = (f->fs-p->min_fs)*p->fsx + (f->ss-p->min_ss)*p->ssx; + ys = (f->ss-p->min_fs)*p->fsy + (f->ss-p->min_ss)*p->ssy; rx = xs + p->cnx; ry = ys + p->cny; |