mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
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:
parent
1bae4356b0
commit
00299755f2
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user