From 5f30d87fd0127bb475894825c6e4acc01fcedb29 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Mon, 27 Mar 2017 13:26:58 +1000 Subject: Changes to Editor::visual_changer to support Item/Canvas::prepare_for_render This is necessary to allow calculation of correct intersection of visible canvas area and items for the new Item::prepare_for_render() API. samples_per_pixel must be set first to calculate the new horizontal canvas position in Editor::set_horizontal_position and then WaveView::set_samples_per_pixel will eventually call WaveView::prepare_for_render for those items that are visible on the new canvas position at the new position. Or if there is not a change to zoom state then call Canvas::prepare_for_render explicitly. Also changes so that each method is only called once during Editor::visual_changer --- gtk2_ardour/editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk2_ardour/editor.h') diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index bce6caa912..633329541e 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -610,6 +610,7 @@ private: Editing::ZoomFocus zoom_focus; void set_samples_per_pixel (framecnt_t); + void on_samples_per_pixel_changed (); Editing::MouseMode mouse_mode; Editing::SnapType pre_internal_snap_type; -- cgit v1.2.3