return 1;
}
+// process_scope uses the refresh frame for opengl
void Canvas::update_refresh(VideoDevice *device, VFrame *output_frame)
{
int best_color_model = output_frame->get_color_model();
}
else
refresh_frame->transfer_from(output_frame, -1);
+ draw_scope(refresh_frame, 1);
+}
+
+void Canvas::process_scope(VideoDevice *video, VFrame *frame)
+{
+ if( !scope_on() ) return;
+ int use_opengl =
+ video->out_config->driver == PLAYBACK_X11_GL &&
+ frame->get_opengl_state() != VFrame::RAM;
+ if( use_opengl ) {
+ update_refresh(video, frame);
+ frame = refresh_frame;
+ }
+ if( frame )
+ draw_scope(frame, 0);
}
void Canvas::clear(int flash)
}
CanvasZoomSize::CanvasZoomSize(Canvas *canvas)
- : BC_MenuItem(_("Zoom..."))
+ : BC_MenuItem(_("Resize Window..."))
{
this->canvas = canvas;
}