changeset 22415:c36b8d705d08

Generate resize events when size of -wid window changes.
author reimar
date Sun, 04 Mar 2007 10:30:55 +0000
parents 01f781618827
children 02783a09e1b3
files libvo/w32_common.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/w32_common.c	Sun Mar 04 09:45:32 2007 +0000
+++ b/libvo/w32_common.c	Sun Mar 04 10:30:55 2007 +0000
@@ -132,6 +132,14 @@
 	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;
 }