wined3d: Add SURFACE_BUSY support to *_BltFast.

This commit is contained in:
Roderick Colenbrander 2008-02-15 22:58:38 +00:00 committed by Alexandre Julliard
parent 5437cb01f1
commit a29584b34f
1 changed files with 6 additions and 0 deletions

View File

@ -3474,6 +3474,12 @@ HRESULT WINAPI IWineD3DSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD dstx, D
IWineD3DDeviceImpl *myDevice = This->resource.wineD3DDevice;
TRACE("(%p)->(%d, %d, %p, %p, %08x\n", iface, dstx, dsty, Source, rsrc, trans);
if ( (This->Flags & SFLAG_LOCKED) || ((srcImpl != NULL) && (srcImpl->Flags & SFLAG_LOCKED)))
{
WARN(" Surface is busy, returning DDERR_SURFACEBUSY\n");
return WINEDDERR_SURFACEBUSY;
}
if(myDevice->inScene &&
(iface == myDevice->stencilBufferTarget ||
(Source && Source == myDevice->stencilBufferTarget))) {