Skip to content

Commit

Permalink
BURIED: Fix crash when dragging inventory items
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 authored and bluegr committed Aug 18, 2023
1 parent 9dd8922 commit 10a0137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/buried/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 10a0137

Please sign in to comment.