mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-25 07:57:43 +01:00
Restore scrolling performance on osx.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4092 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b568afc01a
commit
5b25697c28
2 changed files with 8 additions and 2 deletions
|
|
@ -1668,7 +1668,9 @@ public:
|
|||
ArdourCanvas::SimpleRect* range_marker_drag_rect;
|
||||
|
||||
void update_marker_drag_item (ARDOUR::Location *);
|
||||
|
||||
#ifdef GTKOSX
|
||||
ArdourCanvas::SimpleRect *bogus_background_rect;
|
||||
#endif
|
||||
ArdourCanvas::SimpleRect *transport_bar_range_rect;
|
||||
ArdourCanvas::SimpleRect *transport_bar_preroll_rect;
|
||||
ArdourCanvas::SimpleRect *transport_bar_postroll_rect;
|
||||
|
|
|
|||
|
|
@ -133,10 +133,14 @@ Editor::initialize_canvas ()
|
|||
logo_item->show ();
|
||||
}
|
||||
|
||||
|
||||
/* a group to hold time (measure) lines */
|
||||
time_line_group = new ArdourCanvas::Group (*track_canvas->root());
|
||||
|
||||
#ifdef GTKOSX
|
||||
/*XXX please don't laugh. this actually improves canvas performance on osx */
|
||||
bogus_background_rect = new ArdourCanvas::SimpleRect (*time_line_group, 0.0, 0.0, max_canvas_coordinate/3, physical_screen_height);
|
||||
bogus_background_rect->property_outline_pixels() = 0;
|
||||
#endif
|
||||
transport_loop_range_rect = new ArdourCanvas::SimpleRect (*time_line_group, 0.0, 0.0, 0.0, physical_screen_height);
|
||||
transport_loop_range_rect->property_outline_pixels() = 1;
|
||||
transport_loop_range_rect->hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue