From e4be357bce73b1c583f7811e365ce937c7d46355 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 19 Mar 2013 23:36:43 +0100 Subject: 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). --- video/out/w32_common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video') diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 6ef788bd0b..0a96af513a 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -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_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; -- cgit v1.2.3