diff options
author | Thomas White <taw@physics.org> | 2020-09-08 15:06:35 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-08 16:16:48 +0200 |
commit | 70a7ad18ba3c5a1071b38222159c401704e6a2eb (patch) | |
tree | 1e75b8aeefe85c05c4e1e4009a06ab6a3063f966 /src/crystfelimageview.c | |
parent | b91e9a520feb90478e3fd2fbf4c1923af5e02ee5 (diff) |
Fixup peak box
Diffstat (limited to 'src/crystfelimageview.c')
-rw-r--r-- | src/crystfelimageview.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c index 119efbc2..9773c4d4 100644 --- a/src/crystfelimageview.c +++ b/src/crystfelimageview.c @@ -398,12 +398,14 @@ static void draw_peaks(cairo_t *cr, CrystFELImageView *iv, struct detgeom_panel *p; double x, y; double this_bs; + double this_lw; int show_cen = 0; f = image_get_feature_const(pks, i); if ( f == NULL ) continue; p = &iv->image->detgeom->panels[f->pn]; + this_lw = biggest(0.1*p->pixel_pitch, lw); this_bs = biggest(iv->peak_box_size * p->pixel_pitch, bs); @@ -414,7 +416,7 @@ static void draw_peaks(cairo_t *cr, CrystFELImageView *iv, x = p->pixel_pitch*(p->cnx + p->fsx*f->fs + p->ssx*f->ss); y = p->pixel_pitch*(p->cny + p->fsy*f->fs + p->ssy*f->ss); cairo_rectangle(cr, x-this_bs, y-this_bs, 2*this_bs, 2*this_bs); - cairo_set_line_width(cr, lw); + cairo_set_line_width(cr, this_lw); cairo_set_source_rgb(cr, 1.0, 1.0, 0.0); cairo_stroke(cr); |