diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-01 20:40:07 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-01 20:40:07 +0000 |
commit | 00299755f20de33705a6909467fb4e6282cfef30 (patch) | |
tree | 176d9503d4fd11ca2662dd7eb435c8a19d6d8e12 /libvo | |
parent | 1bae4356b0b13264f64579d9d7256ffb62d5418e (diff) |
Make aware of new -fs calling.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2040 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_xmga.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c index f3eca823d9..ee2b95e35b 100644 --- a/libvo/vo_xmga.c +++ b/libvo/vo_xmga.c @@ -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 ); |