summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xmga.c11
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 );