From 1020ae516ba5577c0fc356acad58e12a9ba56c65 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 4 Apr 2012 19:12:16 +0000 Subject: [PATCH] vo_directx: do not do aspect scaling in windowed mode. This matches behaviour of other vos. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34840 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_directx.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index 52d18188d2..f4ab2a7f7f 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -466,10 +466,12 @@ static uint32_t Directx_ManageDisplay(void) width = vo_dwidth; height = vo_dheight; - aspect(&width, &height, A_WINZOOM); - panscan_calc_windowed(); - width += vo_panscan_x; - height += vo_panscan_y; + if (aspect_scaling()) { + aspect(&width, &height, A_WINZOOM); + panscan_calc_windowed(); + width += vo_panscan_x; + height += vo_panscan_y; + } rd.left += (vo_dwidth - width ) / 2; rd.top += (vo_dheight - height) / 2;