[MPlayer-cvslog] r28074 - trunk/libvo/w32_common.c

reimar subversion at mplayerhq.hu
Wed Dec 3 11:54:02 CET 2008


Author: reimar
Date: Wed Dec  3 11:54:01 2008
New Revision: 28074

Log:
More robust w32 -wid size handling


Modified:
   trunk/libvo/w32_common.c

Modified: trunk/libvo/w32_common.c
==============================================================================
--- trunk/libvo/w32_common.c	(original)
+++ trunk/libvo/w32_common.c	Wed Dec  3 11:54:01 2008
@@ -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);



More information about the MPlayer-cvslog mailing list