summaryrefslogtreecommitdiffstats
path: root/libvo/w32_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/w32_common.c')
-rw-r--r--libvo/w32_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/w32_common.c b/libvo/w32_common.c
index 29a756163f..3be776f5d9 100644
--- a/libvo/w32_common.c
+++ b/libvo/w32_common.c
@@ -175,6 +175,11 @@ int vo_w32_check_events(void) {
}
if (WinID >= 0) {
RECT r;
+ GetClientRect(vo_window, &r);
+ if (r.right != vo_dwidth || r.bottom != vo_dheight) {
+ vo_dwidth = r.right; vo_dheight = r.bottom;
+ event_flags |= VO_EVENT_RESIZE;
+ }
GetClientRect(WinID, &r);
if (r.right != vo_dwidth || r.bottom != vo_dheight)
MoveWindow(vo_window, 0, 0, r.right, r.bottom, FALSE);