Commit 166db1e9 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

quartz: Use a more appropriate size for the video renderer window.

parent 44525598
...@@ -298,9 +298,14 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data, ...@@ -298,9 +298,14 @@ static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data,
if (!This->init) 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) if (!This->WindowPos.right || !This->WindowPos.bottom)
This->WindowPos = This->SourceRect; 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); TRACE("WindowPos: %d %d %d %d\n", This->WindowPos.left, This->WindowPos.top, This->WindowPos.right, This->WindowPos.bottom);
SetWindowPos(This->hWnd, NULL, SetWindowPos(This->hWnd, NULL,
This->WindowPos.left, This->WindowPos.left,
......
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