mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
basically operational switch to canvas drawing coordinates, although text and waves don't work, and redraw areas are too small
This commit is contained in:
parent
a0c5de281a
commit
77f5f4c4bf
14 changed files with 160 additions and 149 deletions
|
|
@ -65,7 +65,10 @@ Arc::render (Rect const & /*area*/, Cairo::RefPtr<Cairo::Context> context) const
|
|||
if (_radius <= 0.0 || _arc_degrees <= 0.0) {
|
||||
return;
|
||||
}
|
||||
context->arc (_center.x, _center.y, _radius, _start_degrees * (M_PI/180.0), _arc_degrees * (M_PI/180.0));
|
||||
|
||||
Duple c = item_to_window (Duple (_center.x, _center.y));
|
||||
|
||||
context->arc (c.x, c.y, _radius, _start_degrees * (M_PI/180.0), _arc_degrees * (M_PI/180.0));
|
||||
setup_fill_context (context);
|
||||
context->fill_preserve ();
|
||||
setup_outline_context (context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue