[Mplayer-cvslog] CVS: main/libvo vo_xmga.c,1.31,1.32

Atmosfear atmos4 at mplayer.dev.hu
Mon Oct 1 22:40:25 CEST 2001


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

Modified Files:
	vo_xmga.c 
Log Message:
Make aware of new -fs calling.


Index: vo_xmga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xmga.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- vo_xmga.c	20 Sep 2001 10:26:22 -0000	1.31
+++ vo_xmga.c	1 Oct 2001 20:40:07 -0000	1.32
@@ -257,6 +257,17 @@
     {
      wndWidth=vo_screenwidth;
      wndHeight=vo_screenheight;
+#ifdef X11_FULLSCREEN
+     d_height=(int)((float)vo_screenwidth/(float)dwidth*(float)dheight);
+     d_height+=d_height%2; // round
+     d_width=vo_screenwidth;
+     if(dheight>vo_screenheight){
+       d_width=(int)((float)vo_screenheight/(float)dheight*(float)dwidth);
+       d_width+=d_width%2; // round
+       d_height=vo_screenheight;
+     }
+     dwidth=d_width; dheight=d_height;
+#endif
     }
 
    XGetWindowAttributes( mDisplay,DefaultRootWindow( mDisplay ),&attribs );




More information about the MPlayer-cvslog mailing list