aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-13 14:14:31 +0200
committerThomas White <taw@physics.org>2020-08-13 14:14:31 +0200
commit3cc9876027c090201dfd00c0ba63e477aa5274dd (patch)
tree9fb6f0ee954c1645790c3a90374268b87e60ed6f
parent0e48c77bb04daf4c5dc5d71a74262404edfc049e (diff)
hdfsee: Don't round panel transformations
The rounding was supposed to prevent blurry panel display. However, it completely breaks display of any panels which aren't almost exactly aligned with the x/y axes.
-rw-r--r--src/dw-hdfsee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index bc02c543..96fe19a1 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -134,7 +134,7 @@ static void draw_panel_rectangle(cairo_t *cr, cairo_matrix_t *basic_m,
rint(p.cny/dw->binning));
/* 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);