Moved GetRasterStatus from device to swapchain.
This commit is contained in:
parent
cc4da88563
commit
42eff0f92b
|
@ -4691,11 +4691,19 @@ BOOL WINAPI IWineD3DDeviceImpl_GetSoftwareVertexProcessing(IWineD3DDevice *
|
|||
|
||||
HRESULT WINAPI IWineD3DDeviceImpl_GetRasterStatus(IWineD3DDevice *iface, UINT iSwapChain, D3DRASTER_STATUS* pRasterStatus) {
|
||||
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
|
||||
IWineD3DSwapChain *swapChain;
|
||||
HRESULT hr;
|
||||
|
||||
pRasterStatus->InVBlank = TRUE;
|
||||
pRasterStatus->ScanLine = 0;
|
||||
FIXME("(%p) : stub\n", This);
|
||||
return D3D_OK;
|
||||
TRACE("(%p) : SwapChain %d returning %p\n", This, iSwapChain, pRasterStatus);
|
||||
|
||||
hr = IWineD3DDeviceImpl_GetSwapChain(iface, iSwapChain, (IWineD3DSwapChain **)&swapChain);
|
||||
if(hr == D3D_OK){
|
||||
hr = IWineD3DSwapChain_GetRasterStatus(swapChain, pRasterStatus);
|
||||
IWineD3DSwapChain_Release(swapChain);
|
||||
}else{
|
||||
FIXME("(%p) IWineD3DSwapChain_GetRasterStatus returned in error \n", This);
|
||||
}
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -374,9 +374,14 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetBackBuffer(IWineD3DSwapChain *iface, UIN
|
|||
|
||||
HRESULT WINAPI IWineD3DSwapChainImpl_GetRasterStatus(IWineD3DSwapChain *iface, D3DRASTER_STATUS*pRasterStatus) {
|
||||
IWineD3DSwapChainImpl *This = (IWineD3DSwapChainImpl *)iface;
|
||||
static BOOL showFixmes = TRUE;
|
||||
pRasterStatus->InVBlank = TRUE;
|
||||
pRasterStatus->ScanLine = 0;
|
||||
FIXME("(%p) : stub\n", This);
|
||||
/* No openGL equivalent */
|
||||
if(showFixmes) {
|
||||
FIXME("(%p) : stub (once)\n", This);
|
||||
showFixmes = FALSE;
|
||||
}
|
||||
return D3D_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue