Mercurial > mplayer.hg
diff libvo/vo_xv.c @ 3558:1dbf58c3d50c
aspect ratio bug fix for gui
author | pontscho |
---|---|
date | Mon, 17 Dec 2001 14:19:37 +0000 |
parents | 48f0ac1e9d13 |
children | fc1db33734e7 |
line wrap: on
line diff
--- a/libvo/vo_xv.c Mon Dec 17 12:04:20 2001 +0000 +++ b/libvo/vo_xv.c Mon Dec 17 14:19:37 2001 +0000 @@ -286,8 +286,10 @@ 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 @@ } #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;