mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Remove unused resize-line code. When resizing multiple tracks, resize them in proportion, as per mantis 2732.
git-svn-id: svn://localhost/ardour2/branches/3.0@5213 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
45671f13e3
commit
9402d3f1e3
6 changed files with 51 additions and 177 deletions
|
|
@ -1284,8 +1284,6 @@ bool
|
|||
TimeAxisView::resizer_button_press (GdkEventButton* event)
|
||||
{
|
||||
_resize_drag_start = event->y_root;
|
||||
_resize_idle_target = current_height ();
|
||||
_editor.start_resize_line_ops ();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -1293,7 +1291,6 @@ bool
|
|||
TimeAxisView::resizer_button_release (GdkEventButton* ev)
|
||||
{
|
||||
_resize_drag_start = -1;
|
||||
_editor.end_resize_line_ops ();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -1310,11 +1307,8 @@ TimeAxisView::resizer_motion (GdkEventMotion* ev)
|
|||
return true;
|
||||
}
|
||||
|
||||
int32_t const delta = (int32_t) floor (_resize_drag_start - ev->y_root);
|
||||
|
||||
_resize_idle_target = std::max (_resize_idle_target - delta, (int) hSmall);
|
||||
_editor.add_to_idle_resize (this, _resize_idle_target);
|
||||
|
||||
int32_t const delta = (int32_t) floor (ev->y_root - _resize_drag_start);
|
||||
_editor.add_to_idle_resize (this, delta);
|
||||
_resize_drag_start = ev->y_root;
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue