From 00c5d6e5cb458a7708326916e050930503cb8243 Mon Sep 17 00:00:00 2001 From: pontscho Date: Mon, 17 Dec 2001 14:19:37 +0000 Subject: aspect ratio bug fix for gui git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3559 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xv.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvo/vo_xv.c') 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; -- cgit v1.2.3