summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/w32_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libvo/w32_common.c b/libvo/w32_common.c
index 1e2397d406..141576dfd3 100644
--- a/libvo/w32_common.c
+++ b/libvo/w32_common.c
@@ -132,6 +132,14 @@ int vo_w32_check_events(void) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
+ if (WinID >= 0) {
+ RECT r;
+ GetClientRect(vo_window, &r);
+ if (r.right != vo_dwidth || r.bottom != vo_dheight)
+ event_flags |= VO_EVENT_RESIZE;
+ vo_dwidth = r.right;
+ vo_dheight = r.bottom;
+ }
return event_flags;
}