1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-01 20:00:37 +00:00

w32_common: update window size on resize events

Fixes a regression introduced by commit 088a0075.

Fixes #3400.
This commit is contained in:
wm4 2016-08-07 16:33:57 +02:00
parent 259f219438
commit cfed84af2b

View File

@ -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;