From fddba2d529c7d37b58a176525f45e5d4fc2c80b4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 27 Jan 2013 13:16:34 +0100 Subject: vo_x11: fix redrawing on expose events This part wasn't converted when changing to the new OSD redrawing way. --- video/out/vo_x11.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'video') diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c index b541cbd578..26abcef332 100644 --- a/video/out/vo_x11.c +++ b/video/out/vo_x11.c @@ -68,8 +68,6 @@ struct priv { int depth, bpp; XWindowAttributes attribs; - int int_pause; - int Flip_Flag; int zoomFlag; @@ -120,8 +118,8 @@ static void check_events(struct vo *vo) vo_x11_clearwindow_part(vo, vo->x11->window, p->myximage[p->current_buf]->width, p->myximage[p->current_buf]->height); - if (ret & VO_EVENT_EXPOSE && p->int_pause) - flip_page(vo); + if (ret & VO_EVENT_EXPOSE) + vo->want_redraw = true; } /* Scan the available visuals on this Display/Screen. Try to find @@ -719,12 +717,7 @@ static int preinit(struct vo *vo, const char *arg) static int control(struct vo *vo, uint32_t request, void *data) { - struct priv *p = vo->priv; switch (request) { - case VOCTRL_PAUSE: - return p->int_pause = 1; - case VOCTRL_RESUME: - return p->int_pause = 0; case VOCTRL_FULLSCREEN: vo_x11_fullscreen(vo); vo_x11_clearwindow(vo, vo->x11->window); -- cgit v1.2.3