diff options
author | Paul Gilbert | 2018-04-01 20:46:18 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-01 20:46:18 -0400 |
commit | b49cb8ff145c82050847613cfa9eed899dbc8aad (patch) | |
tree | 7d539db37c9b828ff854c2187d47d11b68307606 | |
parent | 396076c6fd9a74966357074ea9cc5b51f1181f96 (diff) | |
download | scummvm-rg350-b49cb8ff145c82050847613cfa9eed899dbc8aad.tar.gz scummvm-rg350-b49cb8ff145c82050847613cfa9eed899dbc8aad.tar.bz2 scummvm-rg350-b49cb8ff145c82050847613cfa9eed899dbc8aad.zip |
XEEN: Properly crop scene contents from drawing on the top border
-rw-r--r-- | engines/xeen/sprites.cpp | 4 |
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; |