Make aware of new -fs calling.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2040 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2001-10-01 20:40:07 +00:00
parent 1bae4356b0
commit 00299755f2
1 changed files with 11 additions and 0 deletions

View File

@ -257,6 +257,17 @@ static uint32_t init( uint32_t width, uint32_t height, uint32_t d_width, uint32_
{
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 );