[Scummvm-git-logs] scummvm master -> 10a0137ccf15d659b1cd9cc55932e53ccbfcaa02
bluegr
noreply at scummvm.org
Fri Aug 18 05:48:07 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
10a0137ccf BURIED: Fix crash when dragging inventory items
Commit: 10a0137ccf15d659b1cd9cc55932e53ccbfcaa02
https://github.com/scummvm/scummvm/commit/10a0137ccf15d659b1cd9cc55932e53ccbfcaa02
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2023-08-18T08:48:04+03:00
Commit Message:
BURIED: Fix crash when dragging inventory items
Changed paths:
engines/buried/graphics.cpp
diff --git a/engines/buried/graphics.cpp b/engines/buried/graphics.cpp
index f655fb231d1..bc8c545d42c 100644
--- a/engines/buried/graphics.cpp
+++ b/engines/buried/graphics.cpp
@@ -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) {
More information about the Scummvm-git-logs
mailing list