#endif
#include <stdint.h>
+#include <algorithm>
#include "pbd/memento_command.h"
#include "pbd/basename.h"
#ifdef WITH_VIDEOTIMELINE
-#ifndef MAX
-#define MAX(a, b) (((a) > (b)) ? (a) : (b))
-#endif
-
-
AVDraggingView::AVDraggingView (RegionView* v)
: view (v)
{
}
_editor->session()->maybe_update_session_range(
- MAX(ARDOUR_UI::instance()->video_timeline->get_offset(), 0),
- MAX(ARDOUR_UI::instance()->video_timeline->get_offset() + ARDOUR_UI::instance()->video_timeline->get_duration(), 0)
+ std::max(ARDOUR_UI::instance()->video_timeline->get_offset(), (ARDOUR::frameoffset_t) 0),
+ std::max(ARDOUR_UI::instance()->video_timeline->get_offset() + ARDOUR_UI::instance()->video_timeline->get_duration(), (ARDOUR::frameoffset_t) 0)
);
*/
#ifdef WITH_VIDEOTIMELINE
+#include <algorithm>
#include <sigc++/bind.h>
#include "ardour/tempo.h"
using namespace PBD;
using namespace Timecode;
-#ifndef MAX
-#define MAX(a, b) (((a) > (b)) ? (a) : (b))
-#endif
-
VideoTimeLine::VideoTimeLine (PublicEditor *ed, ArdourCanvas::Group *vbg, int initial_height)
: editor (ed)
, videotl_bar_group(vbg)
flush_local_cache ();
_session->maybe_update_session_range(
- MAX(get_offset(), 0),
- MAX(get_offset() + get_duration(), 0)
+ std::max(get_offset(), (ARDOUR::frameoffset_t) 0),
+ std::max(get_offset() + get_duration(), (ARDOUR::frameoffset_t) 0)
);
if (found_xjadeo() && local_file) {