summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;