aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-12 13:07:14 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:24 +0200
commit5c916f34876f7e16c42474434ab902fec709cff5 (patch)
tree89fcb538deeaaf00429fba1ee9560f41bbe42ab3
parent3c11e6cfec7102c4c33284c75be2370a53132581 (diff)
Don't round the panel vectors
This was necessary before to keep pixel alignment. Now that we can easily zoom, it's not as important to keep pixel-for-pixel correspondence.
-rw-r--r--src/crystfelimageview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c
index ba0e95e3..45933c44 100644
--- a/src/crystfelimageview.c
+++ b/src/crystfelimageview.c
@@ -212,7 +212,7 @@ static void draw_panel_rectangle(cairo_t *cr, CrystFELImageView *iv, int i)
cairo_translate(cr, p.cnx*p.pixel_pitch, p.cny*p.pixel_pitch);
/* Twiddle directions according to matrix */
- cairo_matrix_init(&m, rint(p.fsx), rint(p.fsy), rint(p.ssx), rint(p.ssy),
+ cairo_matrix_init(&m, p.fsx, p.fsy, p.ssx, p.ssy,
0.0, 0.0);
cairo_transform(cr, &m);