summaryrefslogtreecommitdiffstats
path: root/video/out/vo_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_x11.c')
-rw-r--r--video/out/vo_x11.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c
index 53a4fb03f7..63c256c509 100644
--- a/video/out/vo_x11.c
+++ b/video/out/vo_x11.c
@@ -460,7 +460,7 @@ static void flip_page(struct vo *vo)
XSync(vo->x11->display, False);
}
-// Note: redraw_frame() can call this with NULL.
+// Note: REDRAW_FRAME can call this with NULL.
static void draw_image(struct vo *vo, mp_image_t *mpi)
{
struct priv *p = vo->priv;
@@ -489,17 +489,6 @@ static void draw_image(struct vo *vo, mp_image_t *mpi)
}
}
-static int redraw_frame(struct vo *vo)
-{
- struct priv *p = vo->priv;
-
- if (!p->original_image)
- return false;
-
- draw_image(vo, p->original_image);
- return true;
-}
-
static int query_format(struct vo *vo, uint32_t format)
{
struct priv *p = vo->priv;
@@ -631,7 +620,7 @@ static int control(struct vo *vo, uint32_t request, void *data)
resize(vo);
return VO_TRUE;
case VOCTRL_REDRAW_FRAME:
- redraw_frame(vo);
+ draw_image(vo, p->original_image);
return true;
case VOCTRL_WINDOW_TO_OSD_COORDS: {
// OSD is rendered into the scaled image