diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/draci/game.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp index 561ea78c62..c01e544986 100644 --- a/engines/draci/game.cpp +++ b/engines/draci/game.cpp @@ -388,6 +388,17 @@ int Game::loadAnimation(uint animNum, uint z) { Sprite *sp = new Sprite(spriteFile->_data, spriteFile->_length, x, y, true); + // Some frames set the scaled dimensions to 0 even though other frames + // from the same animations have them set to normal values + // We work around this by assuming it means no scaling is necessary + if (scaledWidth == 0) { + scaledWidth = sp->getWidth(); + } + + if (scaledHeight == 0) { + scaledHeight = sp->getHeight(); + } + sp->setScaled(scaledWidth, scaledHeight); if (mirror) |