summaryrefslogtreecommitdiff
path: root/libs/canvas/rectangle.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-09-01 18:05:09 +0200
committerRobin Gareus <robin@gareus.org>2014-09-01 18:05:09 +0200
commit158037bba2a14f5782b7916040736c27f0112b52 (patch)
tree9456b3f0ad6094aff0a26a0ff19e6279374a7ff6 /libs/canvas/rectangle.cc
parent34c1465cf9645fce4e05299f6e5a2e7af19a0d3e (diff)
Match canvas outline to rectangle
It looks like we're currently [consistently] off by 1px everywhere. The width-1 is compensated by TimeAxisViewItem::RIGHT_EDGE_SHIFT = 1
Diffstat (limited to 'libs/canvas/rectangle.cc')
-rw-r--r--libs/canvas/rectangle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/canvas/rectangle.cc b/libs/canvas/rectangle.cc
index bc4ad0c960..1b75584849 100644
--- a/libs/canvas/rectangle.cc
+++ b/libs/canvas/rectangle.cc
@@ -118,8 +118,8 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
if (_outline_what & RIGHT) {
/* vertical line: move x-coordinate by 0.5 pixels */
- context->move_to (self.x1 + 0.5, self.y0);
- context->line_to (self.x1 + 0.5, self.y1);
+ context->move_to (self.x1 - 0.5, self.y0);
+ context->line_to (self.x1 - 0.5, self.y1);
}
}