Extend symbol area to whole pixels.

This gives better cairo performance.
This commit is contained in:
Přemysl Eric Janouch 2011-02-06 12:36:11 +01:00
parent 2dcf578c12
commit 7f08a51c66
1 changed files with 5 additions and 0 deletions

View File

@ -1056,6 +1056,11 @@ get_symbol_area (LdCanvas *self, LdDiagramSymbol *symbol, LdRectangle *rect)
object_y + area.y + area.height, object_y + area.y + area.height,
&x2, &y2); &x2, &y2);
x1 = floor (x1);
y1 = floor (y1);
x2 = ceil (x2);
y2 = ceil (y2);
rect->x = x1; rect->x = x1;
rect->y = y1; rect->y = y1;
rect->width = x2 - x1; rect->width = x2 - x1;