aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-01 22:21:40 -0400
committerPaul Gilbert2018-04-01 22:21:40 -0400
commit388f55b85791a5a5c9666c7429e27532dfd41d3c (patch)
tree09dc1dcf60c399faf895e4d543b66801b95ccc11 /engines
parentb49cb8ff145c82050847613cfa9eed899dbc8aad (diff)
downloadscummvm-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')
-rw-r--r--engines/xeen/sprites.cpp11
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;
+ }
}
}