13
0

fix various aspects of display of mapping cursor

This might all change in the future, or even go away.
This commit is contained in:
Paul Davis 2023-03-11 20:27:14 -07:00
parent 74225f07de
commit 20349d868e

View File

@ -190,13 +190,14 @@ Editor::initialize_canvas ()
mapping_bar->set_outline_what(ArdourCanvas::Rectangle::BOTTOM); mapping_bar->set_outline_what(ArdourCanvas::Rectangle::BOTTOM);
mapping_cursor = new ArdourCanvas::Arc (mapping_group); mapping_cursor = new ArdourCanvas::Arc (mapping_group);
CANVAS_DEBUG_NAME (mapping_cursor, "Mapping Cursor");
mapping_cursor->set_fill (false); mapping_cursor->set_fill (false);
mapping_cursor->set_outline (true); mapping_cursor->set_outline (true);
mapping_cursor->set_outline_color (0xff0000ff); mapping_cursor->set_outline_color (0xff0000ff);
mapping_cursor->set_radius (timebar_height/2); mapping_cursor->set_outline_width (3. * UIConfiguration::instance().get_ui_scale());
mapping_cursor->set_radius ((timebar_height-5.)/2);
mapping_cursor->set_arc (360); mapping_cursor->set_arc (360);
mapping_cursor->set_ignore_events (true); mapping_cursor->set_position (ArdourCanvas::Duple (35., (timebar_height-5.)/2.0)); // x is arbitrary at this time
mapping_cursor->set_center (ArdourCanvas::Duple (35., timebar_height/2.0)); // x is arbitrary at this time
mapping_cursor->hide (); mapping_cursor->hide ();
range_marker_bar = new ArdourCanvas::Rectangle (range_marker_group, ArdourCanvas::Rect (0.0, timebar_top, ArdourCanvas::COORD_MAX, timebar_btm)); range_marker_bar = new ArdourCanvas::Rectangle (range_marker_group, ArdourCanvas::Rect (0.0, timebar_top, ArdourCanvas::COORD_MAX, timebar_btm));