Maarten Lankhorst : quartz: Add support for windowstate in video renderer.
Alexandre Julliard
julliard at winehq.org
Wed May 19 10:34:16 CDT 2010
Module: wine
Branch: master
Commit: 231396de90901675fdf5a8200d983af1409230c9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=231396de90901675fdf5a8200d983af1409230c9
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Tue May 18 20:17:53 2010 +0200
quartz: Add support for windowstate in video renderer.
---
dlls/quartz/videorenderer.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c
index ed8f24e..845921c 100644
--- a/dlls/quartz/videorenderer.c
+++ b/dlls/quartz/videorenderer.c
@@ -1840,16 +1840,20 @@ static HRESULT WINAPI Videowindow_put_WindowState(IVideoWindow *iface,
LONG WindowState) {
ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
- FIXME("(%p/%p)->(%d): stub !!!\n", This, iface, WindowState);
-
+ TRACE("(%p/%p)->(%d)\n", This, iface, WindowState);
+ ShowWindow(This->hWnd, WindowState);
return S_OK;
}
static HRESULT WINAPI Videowindow_get_WindowState(IVideoWindow *iface,
LONG *WindowState) {
+ WINDOWPLACEMENT place;
ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
- FIXME("(%p/%p)->(%p): stub !!!\n", This, iface, WindowState);
+ place.length = sizeof(place);
+ GetWindowPlacement(This->hWnd, &place);
+ TRACE("(%p/%p)->(%p)\n", This, iface, WindowState);
+ *WindowState = place.showCmd;
return S_OK;
}
More information about the wine-cvs
mailing list