wined3d: Implement GetHWND and SetHWND.
This commit is contained in:
parent
7fee88df9f
commit
04da3ce2d1
|
@ -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;
|
||||
}
|
||||
|
||||
/*****
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue