changeset 5320:0409c865d9e4

-fs aspect fix by KotH
author arpi
date Sun, 24 Mar 2002 21:22:16 +0000
parents 83e6e16e9670
children c8270b550383
files libvo/vo_xvidix.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xvidix.c	Sun Mar 24 21:17:16 2002 +0000
+++ b/libvo/vo_xvidix.c	Sun Mar 24 21:22:16 2002 +0000
@@ -80,6 +80,7 @@
     XTranslateCoordinates(mDisplay, vo_window, mRoot, 0, 0,
 	&drwcX, &drwcY, &mRoot);
 
+    aspect(&dwidth,&dheight,A_NOZOOM);
     if (!vo_fs)
 	mp_msg(MSGT_VO, MSGL_V, "[xvidix] dcx: %d dcy: %d dx: %d dy: %d dw: %d dh: %d\n",
 	    drwcX, drwcY, drwX, drwY, drwWidth, drwHeight);
@@ -88,6 +89,7 @@
 #if X11_FULLSCREEN
     if (vo_fs)
     {
+        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;