diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c index ed9ea4f2d6..2cd90d4185 100644 --- a/libvo/vo_xmga.c +++ b/libvo/vo_xmga.c @@ -124,8 +124,10 @@ static void set_window(){ XTranslateCoordinates( mDisplay,mWindow,mRoot,0,0,&drwcX,&drwcY,&mRoot ); fprintf( stderr,"[xmga] 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; 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; diff --git a/mplayer.c b/mplayer.c index 57b2907620..5392c69e50 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1136,8 +1136,8 @@ current_module="init_libvo"; if ( use_gui ) { mplResizeToMovieSize( sh_video->disp_w,sh_video->disp_h ); - moviewidth=screen_size_x=sh_video->disp_w; - movieheight=screen_size_y=sh_video->disp_h; + moviewidth=sh_video->disp_w; + movieheight=sh_video->disp_h; mplShMem->StreamType=stream->type; mplSetFileName( filename ); }