#include <algorithm>
#include <boost/scoped_array.hpp>
-#include <boost/scoped_ptr.hpp>
#include <gtkmm.h>
fade_in_handle->property_x2() = handle_center + handle_size;
if (pwidth < 5) {
+ hide_start_xfade();
fade_in_shape->hide();
return;
}
fade_in_shape->property_points() = *points;
delete points;
+ redraw_start_xfade_to ( ar, width);
+
/* ensure trim handle stays on top */
if (frame_handle_start) {
frame_handle_start->raise_to_top();
}
- redraw_start_xfade_to ( ar, width);
-
}
void
/* don't show shape if its too small */
if (pwidth < 5) {
+ hide_end_xfade();
fade_out_shape->hide();
return;
}
fade_out_shape->property_points() = *points;
delete points;
+ redraw_end_xfade_to (ar, width);
+
/* ensure trim handle stays on top */
if (frame_handle_end) {
frame_handle_end->raise_to_top();
}
- redraw_end_xfade_to (ar, width);
}
framepos_t
}
editor->present ();
- editor->set_position (Gtk::WIN_POS_MOUSE);
editor->show_all();
}
}
Points* points = get_canvas_points ("xfade edit redraw", npoints);
- boost::scoped_ptr<float> vec (new float[npoints]);
+ boost::scoped_array<float> vec (new float[npoints]);
ar->fade_out()->curve().get_vector (0, ar->fade_out()->back()->when, vec.get(), npoints);