From 00299755f20de33705a6909467fb4e6282cfef30 Mon Sep 17 00:00:00 2001 From: atmos4 Date: Mon, 1 Oct 2001 20:40:07 +0000 Subject: [PATCH] Make aware of new -fs calling. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2040 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xmga.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 );