[Mplayer-cvslog] CVS: main/libvo vo_xvidix.c,1.26,1.27

Nick Kurshev nick at mplayer.dev.hu
Mon Mar 11 10:24:12 CET 2002


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

Modified Files:
	vo_xvidix.c 
Log Message:
Compute aspect ratio only once

Index: vo_xvidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xvidix.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- vo_xvidix.c	11 Mar 2002 09:01:43 -0000	1.26
+++ vo_xvidix.c	11 Mar 2002 09:24:09 -0000	1.27
@@ -74,19 +74,6 @@
 
 static void set_window(int force_update,const vo_tune_info_t *info)
 {
-#ifdef HAVE_NEW_GUI
-	if (vo_fs)
-	{
-	    dwidth = vo_screenwidth;
-	    dheight = vo_screenwidth * vo_dheight / vo_dwidth;
-	}
-	else
-	{
-	    dwidth = vo_dwidth;
-	    dheight = vo_dheight;
-	}
-#endif
-
     XGetGeometry(mDisplay, vo_window, &mRoot, &drwX, &drwY, &drwWidth,
 	&drwHeight, &drwBorderWidth, &drwDepth);
     drwX = drwY = 0;
@@ -98,11 +85,9 @@
 	    drwcX, drwcY, drwX, drwY, drwWidth, drwHeight);
 
     /* following stuff copied from vo_xmga.c */
-    aspect(&dwidth, &dheight, A_NOZOOM);
 #if X11_FULLSCREEN
     if (vo_fs)
     {
-	aspect(&dwidth, &dheight, A_ZOOM);
 	drwX = (vo_screenwidth - (dwidth > vo_screenwidth ? vo_screenwidth : dwidth)) / 2;
 	drwcX += drwX;
 	drwY = (vo_screenheight - (dheight > vo_screenheight ? vo_screenheight : dheight)) / 2;
@@ -287,7 +272,8 @@
 	window_height = vo_screenheight;
     }
 #endif
-
+    dwidth = d_width;
+    dheight = d_height;
     /* Make the window */
     XGetWindowAttributes(mDisplay, DefaultRootWindow(mDisplay), &attribs);
 




More information about the MPlayer-cvslog mailing list