[Mplayer-cvslog] CVS: main/libvo vo_xmga.c,1.34,1.35 vo_xv.c,1.37,1.38
Zoltan Ponekker
pontscho at mplayer.dev.hu
Mon Dec 17 15:19:39 CET 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv25422/libvo
Modified Files:
vo_xmga.c vo_xv.c
Log Message:
aspect ratio bug fix for gui
Index: vo_xmga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xmga.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- vo_xmga.c 18 Oct 2001 02:42:20 -0000 1.34
+++ vo_xmga.c 17 Dec 2001 14:19:37 -0000 1.35
@@ -124,8 +124,10 @@
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;
Index: vo_xv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xv.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- vo_xv.c 18 Oct 2001 02:42:20 -0000 1.37
+++ vo_xv.c 17 Dec 2001 14:19:37 -0000 1.38
@@ -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;
More information about the MPlayer-cvslog
mailing list