vo_xv: always request redraw on resize

Fixes using panscan controls with OSD off and video paused.
This commit is contained in:
wm4 2013-06-15 17:14:14 +02:00
parent 0e2fb5d8e8
commit b04ce54711
1 changed files with 3 additions and 3 deletions

View File

@ -477,6 +477,8 @@ static void resize(struct vo *vo)
vo_x11_clear_background(vo, &ctx->dst_rect); vo_x11_clear_background(vo, &ctx->dst_rect);
xv_draw_colorkey(vo, &ctx->dst_rect); xv_draw_colorkey(vo, &ctx->dst_rect);
read_xv_csp(vo); read_xv_csp(vo);
vo->want_redraw = true;
} }
/* /*
@ -945,10 +947,8 @@ static int control(struct vo *vo, uint32_t request, void *data)
} }
int events = 0; int events = 0;
int r = vo_x11_control(vo, &events, request, data); int r = vo_x11_control(vo, &events, request, data);
if (events & (VO_EVENT_EXPOSE | VO_EVENT_RESIZE)) { if (events & (VO_EVENT_EXPOSE | VO_EVENT_RESIZE))
resize(vo); resize(vo);
vo->want_redraw = true;
}
return r; return r;
} }