aboutsummaryrefslogtreecommitdiff
path: root/src/crystfelimageview.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-09 15:25:17 +0200
committerThomas White <taw@physics.org>2020-09-09 15:25:17 +0200
commit74d4bb6cf67454884447a2f7b9bc94f9e6b2ae08 (patch)
treef2c6222e6f7d877ace14d39c84a76e20b29b85df /src/crystfelimageview.c
parent362efbb2cb77745a3b2cb0222867ae5833962575 (diff)
CrystFELImageView: Better cross-hairs
Diffstat (limited to 'src/crystfelimageview.c')
-rw-r--r--src/crystfelimageview.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c
index e9677b8b..997c34d5 100644
--- a/src/crystfelimageview.c
+++ b/src/crystfelimageview.c
@@ -421,10 +421,11 @@ static void draw_peaks(cairo_t *cr, CrystFELImageView *iv,
cairo_stroke(cr);
if ( show_cen ) {
- cairo_move_to(cr, x-this_bs, y);
- cairo_line_to(cr, x+this_bs, y);
- cairo_move_to(cr, x, y-this_bs);
- cairo_line_to(cr, x, y+this_bs);
+ cairo_move_to(cr, x-0.2*p->pixel_pitch, y);
+ cairo_line_to(cr, x+0.2*p->pixel_pitch, y);
+ cairo_move_to(cr, x, y-0.2*p->pixel_pitch);
+ cairo_line_to(cr, x, y+0.2*p->pixel_pitch);
+ cairo_set_source_rgb(cr, 0.4, 0.4, 0.0);
cairo_stroke(cr);
}
@@ -480,10 +481,11 @@ static void draw_refls(cairo_t *cr, CrystFELImageView *iv,
cairo_stroke(cr);
if ( show_cen ) {
- cairo_move_to(cr, x-this_bs, y);
- cairo_line_to(cr, x+this_bs, y);
- cairo_move_to(cr, x, y-this_bs);
- cairo_line_to(cr, x, y+this_bs);
+ cairo_move_to(cr, x-0.2*p->pixel_pitch, y);
+ cairo_line_to(cr, x+0.2*p->pixel_pitch, y);
+ cairo_move_to(cr, x, y-0.2*p->pixel_pitch);
+ cairo_line_to(cr, x, y+0.2*p->pixel_pitch);
+ cairo_set_source_rgb(cr, 0.0, 0.4, 0.0);
cairo_stroke(cr);
}