Mercurial > mplayer.hg
changeset 2039:452f3cb96b32
Make aware of new -fs calling.
author | atmos4 |
---|---|
date | Mon, 01 Oct 2001 20:40:07 +0000 |
parents | 9b5b1484c74f |
children | bf7764f429c9 |
files | libvo/vo_xmga.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 );