wined3d: Implement GetHWND and SetHWND.

This commit is contained in:
Stefan Dösinger 2006-04-18 23:39:52 +02:00 committed by Alexandre Julliard
parent 7fee88df9f
commit 04da3ce2d1
2 changed files with 12 additions and 5 deletions

View File

@ -4992,15 +4992,19 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetDisplayMode(IWineD3DDevice *iface, UINT iSw
}
HRESULT WINAPI IWineD3DDeviceImpl_SetHWND(IWineD3DDevice *iface, HWND hWnd) {
FIXME("This is unimplemented for now(d3d7 merge)\n");
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
TRACE("(%p)->(%p)\n", This, hWnd);
return WINED3DERR_INVALIDCALL;
This->ddraw_window = hWnd;
return WINED3D_OK;
}
HRESULT WINAPI IWineD3DDeviceImpl_GetHWND(IWineD3DDevice *iface, HWND *hWnd) {
FIXME("This is unimplemented for now(d3d7 merge)\n");
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
TRACE("(%p)->(%p)\n", This, hWnd);
return WINED3DERR_INVALIDCALL;
*hWnd = This->ddraw_window;
return WINED3D_OK;
}
/*****

View File

@ -583,7 +583,10 @@ typedef struct IWineD3DDeviceImpl
/* process vertex shaders using software or hardware */
BOOL softwareVertexProcessing;
/* DirectDraw stuff */
HWND ddraw_window;
} IWineD3DDeviceImpl;
extern const IWineD3DDeviceVtbl IWineD3DDevice_Vtbl;