add waveform audio icons, clear vwdw on change_source
[goodguy/history.git] / cinelerra-5.1 / cinelerra / canvas.C
index 9f3ddc3b6e7d6cac46b5520164eda2419e5603a0..aabe440de3c470bfd47a1865e0dfc732c7893a29 100644 (file)
@@ -883,6 +883,16 @@ void Canvas::update_refresh(VideoDevice *device, VFrame *output_frame)
 }
 
 
+void Canvas::clear(int flush)
+{
+       if( refresh_frame )
+               refresh_frame->clear_frame();
+       BC_WindowBase *wdw = get_canvas();
+       if( !wdw ) return;
+       wdw->set_bg_color(BLACK);
+       wdw->clear_box(0,0, wdw->get_w(), wdw->get_h());
+       wdw->flash(flush);
+}