From cfed84af2be1f95a595fdff7c846248a5e3f9368 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 7 Aug 2016 16:33:57 +0200 Subject: w32_common: update window size on resize events Fixes a regression introduced by commit 088a0075. Fixes #3400. --- video/out/w32_common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'video/out/w32_common.c') diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 4934a433b2..b1c95f78d1 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1511,6 +1511,12 @@ int vo_w32_control(struct vo *vo, int *events, int request, void *arg) struct vo_w32_state *w32 = vo->w32; if (request == VOCTRL_CHECK_EVENTS) { *events |= atomic_fetch_and(&w32->event_flags, 0); + if (*events & VO_EVENT_RESIZE) { + mp_dispatch_lock(w32->dispatch); + vo->dwidth = w32->dw; + vo->dheight = w32->dh; + mp_dispatch_unlock(w32->dispatch); + } return VO_TRUE; } else { int r; -- cgit v1.2.3