diff options
author | Paul Gilbert | 2015-10-18 12:55:16 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-10-18 12:55:16 -0400 |
commit | 80fcbaf4410c6486986420ba4565c1c3361a1f74 (patch) | |
tree | eeb8ffdcf6218bf1eeee1f4187476800575bd79d /engines | |
parent | 76ba9185dd6e26451e3cd8e0dacce8a539156b1c (diff) | |
download | scummvm-rg350-80fcbaf4410c6486986420ba4565c1c3361a1f74.tar.gz scummvm-rg350-80fcbaf4410c6486986420ba4565c1c3361a1f74.tar.bz2 scummvm-rg350-80fcbaf4410c6486986420ba4565c1c3361a1f74.zip |
XEEN: Restore dirty rect handling in sprite drawing
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/sprites.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp index 8ae7e41b95..218e712433 100644 --- a/engines/xeen/sprites.cpp +++ b/engines/xeen/sprites.cpp @@ -294,14 +294,12 @@ void SpriteResource::drawOffset(XSurface &dest, uint16 offset, const Common::Poi ++destPos.y; } } - dest.addDirtyRect(Common::Rect(0, 0, dest.w, dest.h)); - /* + if (drawBounds.isValidRect()) { drawBounds.clip(Common::Rect(0, 0, dest.w, dest.h)); if (!drawBounds.isEmpty()) dest.addDirtyRect(drawBounds); } - */ } void SpriteResource::draw(XSurface &dest, int frame, const Common::Point &destPos, |