# HG changeset patch # User atmos4 # Date 1001968807 0 # Node ID 452f3cb96b3271665038c59219102af65beb22f1 # Parent 9b5b1484c74fcc11e04fd7495d2ae49c4e1ab4f7 Make aware of new -fs calling. diff -r 9b5b1484c74f -r 452f3cb96b32 libvo/vo_xmga.c --- 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 );