aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-01 20:46:18 -0400
committerPaul Gilbert2018-04-01 20:46:18 -0400
commitb49cb8ff145c82050847613cfa9eed899dbc8aad (patch)
tree7d539db37c9b828ff854c2187d47d11b68307606 /engines/xeen
parent396076c6fd9a74966357074ea9cc5b51f1181f96 (diff)
downloadscummvm-rg350-b49cb8ff145c82050847613cfa9eed899dbc8aad.tar.gz
scummvm-rg350-b49cb8ff145c82050847613cfa9eed899dbc8aad.tar.bz2
scummvm-rg350-b49cb8ff145c82050847613cfa9eed899dbc8aad.zip
XEEN: Properly crop scene contents from drawing on the top border
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/sprites.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp
index 4811f10628..f05ca1bfaf 100644
--- a/engines/xeen/sprites.cpp
+++ b/engines/xeen/sprites.cpp
@@ -146,6 +146,10 @@ void SpriteResource::drawOffset(XSurface &dest, uint16 offset, const Common::Poi
dest.create(xOffset + width, yOffset + height);
bounds = Common::Rect(0, 0, dest.w, dest.h);
}
+ if (flags & SPRFLAG_SCENE_CLIPPED) {
+ bounds.top = 8;
+ bounds.bottom = 149;
+ }
uint16 scaleMaskXCopy = scaleMaskX;
Common::Rect drawBounds;