summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xmga.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_xmga.c')
-rw-r--r--libvo/vo_xmga.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c
index ee2b95e35b..f3a2f4d4df 100644
--- a/libvo/vo_xmga.c
+++ b/libvo/vo_xmga.c
@@ -47,6 +47,7 @@ LIBVO_EXTERN( xmga )
#include "x11_common.h"
#include "sub.h"
+#include "aspect.h"
#ifdef SHOW_TIME
#include "../linux/timer.h"
@@ -258,14 +259,7 @@ 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;
- }
+ aspect(&d_width,&d_height,vo_screenwidth,vo_screenheight);
dwidth=d_width; dheight=d_height;
#endif
}