From 16c2a6660a5c4423e6a9aa74bcf5b2b9fc11783d Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 27 Aug 2009 13:20:21 +0000 Subject: [PATCH] Disable -keepaspect with -wid in w32_common code. This does not work in a useful way and was unintentionally "enabled" when -wid was made to use a separate window. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29559 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/w32_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/w32_common.c b/libvo/w32_common.c index 3125a56305..56c56977f0 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -106,7 +106,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l vo_dheight = r.bottom; break; case WM_WINDOWPOSCHANGING: - if (vo_keepaspect && !vo_fs) { + if (vo_keepaspect && !vo_fs && WinID < 0) { WINDOWPOS *wpos = lParam; int xborder, yborder; r.left = r.top = 0;