[Mplayer-cvslog] CVS: main/libvo vo_xvidix.c,1.37,1.38

Attila Kinali CVS attila at mplayerhq.hu
Tue Jun 4 20:39:19 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv20289

Modified Files:
	vo_xvidix.c 
Log Message:
set_window() fixing detection of changement of the window position


Index: vo_xvidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xvidix.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- vo_xvidix.c	14 May 2002 23:44:35 -0000	1.37
+++ vo_xvidix.c	4 Jun 2002 18:39:16 -0000	1.38
@@ -67,6 +67,7 @@
 static uint32_t image_depth;
 
 /* Window parameters */
+static uint32_t window_x, window_y;
 static uint32_t window_width, window_height;
 
 /* used by XGetGeometry & XTranslateCoordinates for moving/resizing window */
@@ -135,9 +136,12 @@
 #endif
 
     /* set new values in VIDIX */
-    if (force_update || (vo_dx != drwcX) || (vo_dy != drwcY) ||
+    if (force_update || (window_x != drwcX) || (window_y != drwcY) ||
 	(window_width != drwWidth) || (window_height != drwHeight))
     {
+    	// do a backup of window coordinates
+	window_x = drwcX;
+	window_y = drwcY;
 	vo_dx = drwcX;
 	vo_dy = drwcY;
 	window_width = drwWidth;




More information about the MPlayer-cvslog mailing list