diff libvo/vo_xmga.c @ 2039:452f3cb96b32

Make aware of new -fs calling.
author atmos4
date Mon, 01 Oct 2001 20:40:07 +0000
parents 6185fef2703a
children 378aed6b232d
line wrap: on
line diff
--- a/libvo/vo_xmga.c	Mon Oct 01 19:41:27 2001 +0000
+++ b/libvo/vo_xmga.c	Mon Oct 01 20:40:07 2001 +0000
@@ -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 );