From 7f08a51c6615242273f92cf69489d7cb540b7826 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 6 Feb 2011 12:36:11 +0100
Subject: Extend symbol area to whole pixels.
This gives better cairo performance.
---
liblogdiag/ld-canvas.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/liblogdiag/ld-canvas.c b/liblogdiag/ld-canvas.c
index b449560..84aaf67 100644
--- a/liblogdiag/ld-canvas.c
+++ b/liblogdiag/ld-canvas.c
@@ -1056,6 +1056,11 @@ get_symbol_area (LdCanvas *self, LdDiagramSymbol *symbol, LdRectangle *rect)
object_y + area.y + area.height,
&x2, &y2);
+ x1 = floor (x1);
+ y1 = floor (y1);
+ x2 = ceil (x2);
+ y2 = ceil (y2);
+
rect->x = x1;
rect->y = y1;
rect->width = x2 - x1;
--
cgit v1.2.3-70-g09d2