quartz: Return the fullscreen status in Videorenderer.

Signed-off-by: Jan Schmidt <jan@centricular.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jan Schmidt 2016-07-20 14:37:12 +10:00 committed by Alexandre Julliard
parent b5a33f02d3
commit 9f924276a6
1 changed files with 9 additions and 1 deletions

View File

@ -62,6 +62,7 @@ typedef struct VideoRendererImpl
RECT WindowPos;
LONG VideoWidth;
LONG VideoHeight;
LONG FullScreenMode;
} VideoRendererImpl;
static inline VideoRendererImpl *impl_from_BaseWindow(BaseWindow *iface)
@ -890,7 +891,12 @@ static HRESULT WINAPI VideoWindow_get_FullScreenMode(IVideoWindow *iface,
{
VideoRendererImpl *This = impl_from_IVideoWindow(iface);
FIXME("(%p/%p)->(%p): stub !!!\n", This, iface, FullScreenMode);
TRACE("(%p/%p)->(%p): %d\n", This, iface, FullScreenMode, This->FullScreenMode);
if (!FullScreenMode)
return E_POINTER;
*FullScreenMode = This->FullScreenMode;
return S_OK;
}
@ -918,6 +924,7 @@ static HRESULT WINAPI VideoWindow_put_FullScreenMode(IVideoWindow *iface,
SetWindowPos(This->baseControlWindow.baseWindow.hWnd,0,This->DestRect.left,This->DestRect.top,This->DestRect.right,This->DestRect.bottom,SWP_NOZORDER|SWP_SHOWWINDOW);
This->WindowPos = This->DestRect;
}
This->FullScreenMode = FullScreenMode;
return S_OK;
}
@ -1025,6 +1032,7 @@ HRESULT VideoRenderer_create(IUnknown *pUnkOuter, void **ppv)
ZeroMemory(&pVideoRenderer->SourceRect, sizeof(RECT));
ZeroMemory(&pVideoRenderer->DestRect, sizeof(RECT));
ZeroMemory(&pVideoRenderer->WindowPos, sizeof(RECT));
pVideoRenderer->FullScreenMode = OAFALSE;
if (pUnkOuter)
pVideoRenderer->outer_unk = pUnkOuter;