Commit 04dc2812 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

mciqtz32: Don't stretch video destination for a popup or child window.

parent e28c2caa
......@@ -211,9 +211,14 @@ static bool create_window(WINE_MCIQTZ *wma, DWORD flags, const MCI_DGV_OPEN_PARM
IVideoWindow_put_Owner(wma->vidwin, (OAHWND)wma->window);
IVideoWindow_put_WindowStyle(wma->vidwin, WS_CHILD); /* reset window style */
if (style & (WS_POPUP | WS_CHILD))
IBasicVideo_GetVideoSize(wma->vidbasic, &width, &height);
else
{
GetClientRect(wma->window, &rc);
width = rc.right;
height = rc.bottom;
}
IVideoWindow_SetWindowPosition(wma->vidwin, 0, 0, width, height);
IVideoWindow_put_Visible(wma->vidwin, OATRUE);
......
......@@ -1603,7 +1603,6 @@ static void test_video_window(void)
* in particular if the video width is less than SM_CXMIN. */
GetClientRect(video_window, &rc);
todo_wine_if (style & (WS_POPUP | WS_CHILD))
ok(EqualRect(&parm.where.rc, &rc), "Got destination rect %s, expected %s.\n",
wine_dbgstr_rect(&parm.where.rc), wine_dbgstr_rect(&rc));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment