mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue