summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-19 23:36:43 +0100
committerwm4 <wm4@nowhere>2013-03-19 23:36:43 +0100
commite4be357bce73b1c583f7811e365ce937c7d46355 (patch)
tree1cec5cede0d3ae94287071e2a85aed037dcf0939 /video
parent594ad5acc2172de0d38897ef83b04536d93a8889 (diff)
downloadmpv-e4be357bce73b1c583f7811e365ce937c7d46355.tar.bz2
mpv-e4be357bce73b1c583f7811e365ce937c7d46355.tar.xz
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).
Diffstat (limited to 'video')
-rw-r--r--video/out/w32_common.c5
1 files changed, 5 insertions, 0 deletions
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;