summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-17 14:19:37 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-17 14:19:37 +0000
commit00c5d6e5cb458a7708326916e050930503cb8243 (patch)
tree44f7864038c0f364b0e49ec32e0e2132ed5dc931 /libvo
parent4ece33ab9a6e89d91f5ac4fc9c7bc54253b070da (diff)
downloadmpv-00c5d6e5cb458a7708326916e050930503cb8243.tar.bz2
mpv-00c5d6e5cb458a7708326916e050930503cb8243.tar.xz
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')
-rw-r--r--libvo/vo_xmga.c2
-rw-r--r--libvo/vo_xv.c4
2 files changed, 6 insertions, 0 deletions
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;