From 166db1e9340e1525c884ce947f80ddf081730ae6 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 19 Feb 2009 08:53:50 +0100 Subject: [PATCH] quartz: Use a more appropriate size for the video renderer window. --- dlls/quartz/videorenderer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c index 98b66f533e4..ae2a7bd0907 100644 --- a/dlls/quartz/videorenderer.c +++ b/dlls/quartz/videorenderer.c @@ -298,9 +298,14 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data, if (!This->init) { + DWORD style = GetWindowLongW(This->hWnd, GWL_STYLE); + DWORD style_ex = GetWindowLongW(This->hWnd, GWL_EXSTYLE); + if (!This->WindowPos.right || !This->WindowPos.bottom) This->WindowPos = This->SourceRect; + AdjustWindowRectEx(&This->WindowPos, style, TRUE, style_ex); + TRACE("WindowPos: %d %d %d %d\n", This->WindowPos.left, This->WindowPos.top, This->WindowPos.right, This->WindowPos.bottom); SetWindowPos(This->hWnd, NULL, This->WindowPos.left,