1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

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
This commit is contained in:
reimar 2012-04-04 19:12:16 +00:00 committed by wm4
parent a659429f86
commit 1020ae516b

View File

@ -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;