aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2005-08-15 01:01:52 +0000
committerEugene Sandulenko2005-08-15 01:01:52 +0000
commit7aa7430c41736a5c1f80deca83253aa360181f76 (patch)
tree6e32c2d3e13cca09d53ecdd785401c76380f20c1
parent5cca832a8520139daa2fad5c5ec2efc5d713832a (diff)
downloadscummvm-rg350-7aa7430c41736a5c1f80deca83253aa360181f76.tar.gz
scummvm-rg350-7aa7430c41736a5c1f80deca83253aa360181f76.tar.bz2
scummvm-rg350-7aa7430c41736a5c1f80deca83253aa360181f76.zip
Fix bug #1258479 "ITE: Graphical glitches in wildcat tribe"
svn-id: r18688
-rw-r--r--saga/sprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/sprite.cpp b/saga/sprite.cpp
index 253a3e504d..bdf2b6ff08 100644
--- a/saga/sprite.cpp
+++ b/saga/sprite.cpp
@@ -145,8 +145,8 @@ void Sprite::getScaledSpriteBuffer(SpriteList &spriteList, int spriteNumber, int
if (scale < 256) {
xAlign = (spriteInfo->xAlign * scale) >> 8;
yAlign = (spriteInfo->yAlign * scale) >> 8;
- height = (spriteInfo->height * scale + 0x80) >> 8;
- width = (spriteInfo->width * scale + 0x80) >> 8;
+ height = (spriteInfo->height * scale + 0x7f) >> 8;
+ width = (spriteInfo->width * scale + 0x7f) >> 8;
scaleBuffer(spriteInfo->decodedBuffer, spriteInfo->width, spriteInfo->height, scale);
buffer = _decodeBuf;
} else {