Commit 9f924276 authored by Jan Schmidt's avatar Jan Schmidt Committed by Alexandre Julliard

quartz: Return the fullscreen status in Videorenderer.

parent b5a33f02
...@@ -62,6 +62,7 @@ typedef struct VideoRendererImpl ...@@ -62,6 +62,7 @@ typedef struct VideoRendererImpl
RECT WindowPos; RECT WindowPos;
LONG VideoWidth; LONG VideoWidth;
LONG VideoHeight; LONG VideoHeight;
LONG FullScreenMode;
} VideoRendererImpl; } VideoRendererImpl;
static inline VideoRendererImpl *impl_from_BaseWindow(BaseWindow *iface) static inline VideoRendererImpl *impl_from_BaseWindow(BaseWindow *iface)
...@@ -890,7 +891,12 @@ static HRESULT WINAPI VideoWindow_get_FullScreenMode(IVideoWindow *iface, ...@@ -890,7 +891,12 @@ static HRESULT WINAPI VideoWindow_get_FullScreenMode(IVideoWindow *iface,
{ {
VideoRendererImpl *This = impl_from_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; return S_OK;
} }
...@@ -918,6 +924,7 @@ static HRESULT WINAPI VideoWindow_put_FullScreenMode(IVideoWindow *iface, ...@@ -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); 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->WindowPos = This->DestRect;
} }
This->FullScreenMode = FullScreenMode;
return S_OK; return S_OK;
} }
...@@ -1025,6 +1032,7 @@ HRESULT VideoRenderer_create(IUnknown *pUnkOuter, void **ppv) ...@@ -1025,6 +1032,7 @@ HRESULT VideoRenderer_create(IUnknown *pUnkOuter, void **ppv)
ZeroMemory(&pVideoRenderer->SourceRect, sizeof(RECT)); ZeroMemory(&pVideoRenderer->SourceRect, sizeof(RECT));
ZeroMemory(&pVideoRenderer->DestRect, sizeof(RECT)); ZeroMemory(&pVideoRenderer->DestRect, sizeof(RECT));
ZeroMemory(&pVideoRenderer->WindowPos, sizeof(RECT)); ZeroMemory(&pVideoRenderer->WindowPos, sizeof(RECT));
pVideoRenderer->FullScreenMode = OAFALSE;
if (pUnkOuter) if (pUnkOuter)
pVideoRenderer->outer_unk = pUnkOuter; pVideoRenderer->outer_unk = pUnkOuter;
......
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