add refresh on release to scopewindow
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / vwindowgui.C
index 8a3e5888602f2fc0787d511bb7fee09b9de9a981..25404f32f2f597c1169fb0bbc31ad7a6a0ba2ae3 100644 (file)
@@ -832,6 +832,7 @@ int VWindowCanvas::scope_on()
        EditPanelScopeDialog *scope_dialog = gui->edit_panel->scope_dialog;
        if( !scope_dialog || !scope_dialog->scope_gui ) return 0;
        if( scope_dialog->scope_gui->use_refresh ) return 0;
+       if( scope_dialog->scope_gui->use_release ) return 0;
        return scope_dialog->running();
 }
 
@@ -841,9 +842,18 @@ void VWindowCanvas::draw_scope(VFrame *output, int refresh)
        EditPanelScopeDialog *scope_dialog = gui->edit_panel->scope_dialog;
        if( !scope_dialog || !scope_dialog->scope_gui ) return;
        if( scope_dialog->scope_gui->use_refresh && !refresh ) return;
+       if( scope_dialog->scope_gui->use_release && refresh >= 0 ) return;
        scope_dialog->process(output);
 }
 
+int VWindowCanvas::button_release_event()
+{
+       BC_WindowBase *window = get_canvas();
+       if( window && !window->get_video_on() )
+               draw_scope(refresh_frame, -1);
+       return Canvas::button_release_event();
+}
+
 void VWindowCanvas::draw_refresh(int flush)
 {
        if( !get_canvas()->get_video_on() ) {