aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo/vo_xv.c
diff options
context:
space:
mode:
authorGravatar pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-17 14:19:37 +0000
committerGravatar pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-17 14:19:37 +0000
commit00c5d6e5cb458a7708326916e050930503cb8243 (patch)
tree44f7864038c0f364b0e49ec32e0e2132ed5dc931 /libvo/vo_xv.c
parent4ece33ab9a6e89d91f5ac4fc9c7bc54253b070da (diff)
aspect ratio bug fix for gui
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3559 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r--libvo/vo_xv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 92b60faaef..14db960f8a 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -286,8 +286,10 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t
XTranslateCoordinates( mDisplay,mywindow,mRoot,0,0,&drwcX,&drwcY,&mRoot );
printf( "[xv] dcx: %d dcy: %d dx: %d dy: %d dw: %d dh: %d\n",drwcX,drwcY,drwX,drwY,drwWidth,drwHeight );
+ aspect(&dwidth,&dheight,A_NOZOOM);
if ( mFullscreen )
{
+ aspect(&dwidth,&dheight,A_ZOOM);
drwX=( vo_screenwidth - (dwidth > vo_screenwidth?vo_screenwidth:dwidth) ) / 2;
drwcX+=drwX;
drwY=( vo_screenheight - (dheight > vo_screenheight?vo_screenheight:dheight) ) / 2;
@@ -365,8 +367,10 @@ static void check_events(void)
}
#endif
+ aspect(&dwidth,&dheight,A_NOZOOM);
if ( mFullscreen )
{
+ aspect(&dwidth,&dheight,A_ZOOM);
drwX=( vo_screenwidth - (dwidth > vo_screenwidth?vo_screenwidth:dwidth) ) / 2;
drwcX+=drwX;
drwY=( vo_screenheight - (dheight > vo_screenheight?vo_screenheight:dheight) ) / 2;