mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Update miniwin/miniwin/src/miniwin_ddsurface.cpp
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
This commit is contained in:
parent
080ccc100c
commit
63adb2f02a
@ -205,9 +205,9 @@ HRESULT DirectDrawSurfaceImpl::SetPalette(LPDIRECTDRAWPALETTE lpDDPalette)
|
|||||||
|
|
||||||
HRESULT DirectDrawSurfaceImpl::Unlock(LPVOID lpSurfaceData)
|
HRESULT DirectDrawSurfaceImpl::Unlock(LPVOID lpSurfaceData)
|
||||||
{
|
{
|
||||||
if (texture) {
|
if (!texture) {
|
||||||
SDL_UnlockTexture(texture);
|
return DDERR_GENERIC;
|
||||||
return DD_OK;
|
|
||||||
}
|
}
|
||||||
return DDERR_GENERIC;
|
SDL_UnlockTexture(texture);
|
||||||
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user