13
0

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
This commit is contained in:
Robin Gareus 2014-09-01 18:05:09 +02:00
parent 34c1465cf9
commit 158037bba2

View File

@ -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);
}
}