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

reimar subversion at mplayerhq.hu
Sun Jun 19 14:45:28 CEST 2011


Author: reimar
Date: Sun Jun 19 14:45:28 2011
New Revision: 33656

Log:
Generate VO_EVENT_MOVE also with -wid.

Modified:
   trunk/libvo/w32_common.c

Modified: trunk/libvo/w32_common.c
==============================================================================
--- trunk/libvo/w32_common.c	Sun Jun 19 14:36:12 2011	(r33655)
+++ trunk/libvo/w32_common.c	Sun Jun 19 14:45:28 2011	(r33656)
@@ -203,11 +203,18 @@ int vo_w32_check_events(void) {
     if (WinID >= 0) {
         BOOL res;
         RECT r;
+        POINT p;
         res = GetClientRect(vo_window, &r);
         if (res && (r.right != vo_dwidth || r.bottom != vo_dheight)) {
             vo_dwidth = r.right; vo_dheight = r.bottom;
             event_flags |= VO_EVENT_RESIZE;
         }
+        p.x = 0; p.y = 0;
+        ClientToScreen(vo_window, &p);
+        if (p.x != vo_dx || p.y != vo_dy) {
+            vo_dx = p.x; vo_dy = p.y;
+            event_flags |= VO_EVENT_MOVE;
+        }
         res = GetClientRect(WinID, &r);
         if (res && (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