diff options
author | wm4 <wm4@nowhere> | 2013-03-19 23:36:43 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-19 23:36:43 +0100 |
commit | e4be357bce73b1c583f7811e365ce937c7d46355 (patch) | |
tree | 1cec5cede0d3ae94287071e2a85aed037dcf0939 | |
parent | 594ad5acc2172de0d38897ef83b04536d93a8889 (diff) |
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).
-rw-r--r-- | video/out/w32_common.c | 5 |
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; |