Henri Verbeet : quartz: Use a more appropriate size for the video renderer window.
Alexandre Julliard
julliard at winehq.org
Thu Feb 19 09:18:41 CST 2009
Module: wine
Branch: master
Commit: 166db1e9340e1525c884ce947f80ddf081730ae6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=166db1e9340e1525c884ce947f80ddf081730ae6
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Feb 19 08:53:50 2009 +0100
quartz: Use a more appropriate size for the video renderer window.
---
dlls/quartz/videorenderer.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c
index 98b66f5..ae2a7bd 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,
More information about the wine-cvs
mailing list