mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-20 20:36:01 +01:00
Resolve yet more ambiguous Rect (fixes macOS build)
This commit is contained in:
parent
3cf9c1f047
commit
8fa8e7d814
1 changed files with 3 additions and 3 deletions
|
|
@ -462,14 +462,14 @@ AudioClipEditor::on_size_allocate (Gtk::Allocation& alloc)
|
|||
frame->set (r);
|
||||
|
||||
const double ruler_height = 25.;
|
||||
ruler->set (Rect (2, 2, alloc.get_width() - 4, ruler_height));
|
||||
ruler->set (ArdourCanvas::Rect (2, 2, alloc.get_width() - 4, ruler_height));
|
||||
|
||||
const double scroll_bar_height = 10.;
|
||||
const double scroll_bar_width = alloc.get_width () - 2;
|
||||
const double scroll_bar_handle_left = scroll_bar_width * scroll_fraction;
|
||||
|
||||
scroll_bar_trough->set (Rect (1, alloc.get_height () - scroll_bar_height, scroll_bar_width, alloc.get_height ()));
|
||||
scroll_bar_handle->set (Rect (scroll_bar_handle_left, scroll_bar_trough->get ().y0 + 1, scroll_bar_handle_left + 30., scroll_bar_trough->get ().y1 - 1));
|
||||
scroll_bar_trough->set (ArdourCanvas::Rect (1, alloc.get_height () - scroll_bar_height, scroll_bar_width, alloc.get_height ()));
|
||||
scroll_bar_handle->set (ArdourCanvas::Rect (scroll_bar_handle_left, scroll_bar_trough->get ().y0 + 1, scroll_bar_handle_left + 30., scroll_bar_trough->get ().y1 - 1));
|
||||
|
||||
position_lines ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue