[Scummvm-git-logs] scummvm master -> b49cb8ff145c82050847613cfa9eed899dbc8aad
dreammaster
dreammaster at scummvm.org
Mon Apr 2 02:46:20 CEST 2018
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:
b49cb8ff14 XEEN: Properly crop scene contents from drawing on the top border
Commit: b49cb8ff145c82050847613cfa9eed899dbc8aad
https://github.com/scummvm/scummvm/commit/b49cb8ff145c82050847613cfa9eed899dbc8aad
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-04-01T20:46:18-04:00
Commit Message:
XEEN: Properly crop scene contents from drawing on the top border
Changed paths:
engines/xeen/sprites.cpp
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp
index 4811f10..f05ca1b 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;
More information about the Scummvm-git-logs
mailing list