changeset 4194:37c35f4ef9e2

Fixed resize bug.
author nick
date Wed, 16 Jan 2002 09:18:43 +0000
parents ae28646a3568
children b086b94ec244
files libvo/vo_xvidix.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xvidix.c	Wed Jan 16 09:11:07 2002 +0000
+++ b/libvo/vo_xvidix.c	Wed Jan 16 09:18:43 2002 +0000
@@ -74,6 +74,10 @@
     if ((window_x != drwcX) || (window_y != drwcY) ||
 	(window_width != drwWidth) || (window_height != drwHeight))
     {
+	window_x = drwcX;
+	window_y = drwcY;
+	window_width = drwWidth;
+	window_height = drwHeight;
 	/* FIXME: implement runtime resize/move if possible, this way is very ugly! */
 	vidix_term();
 	vidix_preinit(vidix_name, &video_out_xvidix);
@@ -90,11 +94,6 @@
 	}
     }
     
-    window_x = drwcX;
-    window_y = drwcY;
-    window_width = drwWidth;
-    window_height = drwHeight;
-    
     mp_msg(MSGT_VO, MSGL_INFO, "[xvidix] window properties: pos: %dx%d, size: %dx%d\n",
 	window_x, window_y, window_width, window_height);