mirror of https://github.com/mpv-player/mpv
w32_common: reset internal display size to the window size
vo->dwidth/dheight are overwritten by vo.c at this point (which is not nice, but it's how things are currently).
This commit is contained in:
parent
594ad5acc2
commit
e4be357bce
|
@ -542,6 +542,11 @@ int vo_w32_config(struct vo *vo, uint32_t width, uint32_t height,
|
||||||
w32->prev_width = vo->dwidth = width;
|
w32->prev_width = vo->dwidth = width;
|
||||||
w32->prev_height = vo->dheight = height;
|
w32->prev_height = vo->dheight = height;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
RECT r;
|
||||||
|
GetClientRect(w32->window, &r);
|
||||||
|
vo->dwidth = r.right;
|
||||||
|
vo->dheight = r.bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
vo->opts->fs = flags & VOFLAG_FULLSCREEN;
|
vo->opts->fs = flags & VOFLAG_FULLSCREEN;
|
||||||
|
|
Loading…
Reference in New Issue