diff options
author | Paul Gilbert | 2018-04-01 22:21:40 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-01 22:21:40 -0400 |
commit | 388f55b85791a5a5c9666c7429e27532dfd41d3c (patch) | |
tree | 09dc1dcf60c399faf895e4d543b66801b95ccc11 /engines/xeen/sprites.cpp | |
parent | b49cb8ff145c82050847613cfa9eed899dbc8aad (diff) | |
download | scummvm-rg350-388f55b85791a5a5c9666c7429e27532dfd41d3c.tar.gz scummvm-rg350-388f55b85791a5a5c9666c7429e27532dfd41d3c.tar.bz2 scummvm-rg350-388f55b85791a5a5c9666c7429e27532dfd41d3c.zip |
XEEN: Have sprite enlargement do double width as well as height
Diffstat (limited to 'engines/xeen/sprites.cpp')
-rw-r--r-- | engines/xeen/sprites.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp index f05ca1bfaf..adeb5671c1 100644 --- a/engines/xeen/sprites.cpp +++ b/engines/xeen/sprites.cpp @@ -290,12 +290,19 @@ void SpriteResource::drawOffset(XSurface &dest, uint16 offset, const Common::Poi drawBounds.left = MIN(drawBounds.left, xp); drawBounds.right = MAX((int)drawBounds.right, xp + 1); *destP = (byte)*lineP; - if (enlarge) + if (enlarge) { *(destP + SCREEN_WIDTH) = (byte)*lineP; + *(destP + 1) = (byte)*lineP; + *(destP + 1 + SCREEN_WIDTH) = (byte)*lineP; + } } - ++destP; ++xp; + ++destP; + if (enlarge) { + ++destP; + ++xp; + } } } |