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:
parent
34c1465cf9
commit
158037bba2
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user