mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
remove all unit-based methods from (Public)Editor; rationalize Editor::event_frame() to clearly identify whether the passed-in GdkEvent has window units or canvas units (the latter will be true for all events that are handled by the canvas and then passed to Editor
This commit is contained in:
parent
fcb423f3f6
commit
ecfd2a7455
17 changed files with 130 additions and 162 deletions
|
|
@ -778,7 +778,7 @@ EditorSummary::set_editor_x (pair<double, double> x)
|
|||
|
||||
double const nx = (
|
||||
((x.second - x.first) / _x_scale) /
|
||||
_editor->frame_to_unit (_editor->current_page_frames())
|
||||
_editor->frame_to_pixel (_editor->current_page_frames())
|
||||
);
|
||||
|
||||
if (nx != _editor->get_current_zoom ()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue