BURIED: Fix crash when dragging inventory items

This commit is contained in:
Cameron Cawley 2023-08-17 22:27:41 +01:00 committed by Filippos Karapetis
parent 9dd8922a8d
commit 10a0137ccf

View File

@ -318,8 +318,8 @@ void GraphicsManager::keyBlit(Graphics::Surface *dst, int xDst, int yDst, int w,
Common::Rect srcRect(xSrc, ySrc, xSrc + w, ySrc + h);
Common::Rect dstRect(xDst, yDst, xDst + w, yDst + h);
dst->clip(srcRect, dstRect);
dst->copyRectToSurfaceWithKey(*src, xDst, yDst, srcRect, transColor);
if (dst->clip(srcRect, dstRect))
dst->copyRectToSurfaceWithKey(*src, dstRect.left, dstRect.top, srcRect, transColor);
}
void GraphicsManager::keyBlit(Graphics::Surface *dst, int xDst, int yDst, int w, int h, const Graphics::Surface *src, uint xSrc, uint ySrc, byte rTrans, byte gTrans, byte bTrans) {