[MPlayer-cvslog] r32454 - in trunk/libvo: video_out.h x11_common.c

reimar subversion at mplayerhq.hu
Sat Oct 9 13:17:29 CEST 2010


Author: reimar
Date: Sat Oct  9 13:17:28 2010
New Revision: 32454

Log:
Add VO_EVENT_MOVE which is required for VOs that interact directly
with hardware like MGA and VIDIX.
Patch by Dirk Porezag [porezag yahoo com]

Modified:
   trunk/libvo/video_out.h
   trunk/libvo/x11_common.c

Modified: trunk/libvo/video_out.h
==============================================================================
--- trunk/libvo/video_out.h	Sat Oct  9 13:12:53 2010	(r32453)
+++ trunk/libvo/video_out.h	Sat Oct  9 13:17:28 2010	(r32454)
@@ -34,6 +34,7 @@
 #define VO_EVENT_RESIZE 2
 #define VO_EVENT_KEYPRESS 4
 #define VO_EVENT_REINIT 8
+#define VO_EVENT_MOVE 16
 
 /* Obsolete: VOCTRL_QUERY_VAA 1 */
 /* does the device support the required format */

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Sat Oct  9 13:12:53 2010	(r32453)
+++ trunk/libvo/x11_common.c	Sat Oct  9 13:17:28 2010	(r32454)
@@ -797,10 +797,14 @@ static int mouse_waiting_hide;
 static int check_resize(void)
 {
     int old_w = vo_dwidth, old_h = vo_dheight;
+    int old_x = vo_dx, old_y = vo_dy;
+    int rc = 0;
     vo_x11_update_geometry();
     if (vo_dwidth != old_w || vo_dheight != old_h)
-        return VO_EVENT_RESIZE;
-    return 0;
+        rc |= VO_EVENT_RESIZE;
+    if (vo_dx     != old_x || vo_dy      != old_y)
+        rc |= VO_EVENT_MOVE;
+    return rc;
 }
 
 int vo_x11_check_events(Display * mydisplay)


More information about the MPlayer-cvslog mailing list