mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Fix macOS retina scaling - remove set_identity_matrix
`set_identity_matrix` undoes cairo-scale to match the NSView's backing scale which is set for each render callback.
This commit is contained in:
parent
ac6c00da26
commit
45ea2bd84b
2 changed files with 8 additions and 9 deletions
|
|
@ -87,7 +87,7 @@ Loopster::render (ArdourCanvas::Rect const& area, Cairo::RefPtr<Cairo::Context>
|
|||
return;
|
||||
}
|
||||
|
||||
context->set_identity_matrix ();
|
||||
context->save ();
|
||||
context->translate (self.x0, self.y0);
|
||||
|
||||
float size = _rect.height ();
|
||||
|
|
@ -110,7 +110,7 @@ Loopster::render (ArdourCanvas::Rect const& area, Cairo::RefPtr<Cairo::Context>
|
|||
context->stroke ();
|
||||
|
||||
context->set_line_width (1);
|
||||
context->set_identity_matrix ();
|
||||
context->restore ();
|
||||
}
|
||||
|
||||
TriggerMaster::TriggerMaster (Item* parent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue