int VWindowGUI::drag_stop()
{
- if(get_hidden()) return 0;
+ if( get_hidden() ) return 0;
- if(highlighted &&
- mwindow->session->current_operation == DRAG_ASSET)
- {
+ if( highlighted &&
+ mwindow->session->current_operation == DRAG_ASSET ) {
highlighted = 0;
canvas->draw_refresh();
unlock_window();
- Indexable *indexable = mwindow->session->drag_assets->size() ?
- mwindow->session->drag_assets->get(0) :
- 0;
- EDL *edl = mwindow->session->drag_clips->size() ?
- mwindow->session->drag_clips->get(0) :
- 0;
- if(indexable)
+ Indexable *indexable =
+ mwindow->session->drag_assets->size() > 0 ?
+ (Indexable *)mwindow->session->drag_assets->get(0) :
+ mwindow->session->drag_clips->size() > 0 ?
+ (Indexable *)mwindow->session->drag_clips->get(0) : 0;
+ if( indexable )
vwindow->change_source(indexable);
- else
- if(edl)
- vwindow->change_source(edl);
+
lock_window("VWindowGUI::drag_stop");
return 1;
}
}
}
+int VWindowCanvas::need_overlays()
+{
+ if( gui->highlighted ) return 1;
+ return 0;
+}
+
void VWindowCanvas::draw_overlays()
{
if( gui->highlighted )