diff options
author | Denis Kasak | 2009-07-22 04:50:11 +0000 |
---|---|---|
committer | Denis Kasak | 2009-07-22 04:50:11 +0000 |
commit | 9b32771017de2db833c787c338b01cdcf76d27a9 (patch) | |
tree | a54ac3a5b93ffebb79b505e0fb5ee567bdf0febc /engines | |
parent | 348cbc2b197903252202c041c96b943685dd6fb4 (diff) | |
download | scummvm-rg350-9b32771017de2db833c787c338b01cdcf76d27a9.tar.gz scummvm-rg350-9b32771017de2db833c787c338b01cdcf76d27a9.tar.bz2 scummvm-rg350-9b32771017de2db833c787c338b01cdcf76d27a9.zip |
Fixed scaled mirrored sprite drawing. This change enables the NoSense logo animation to be played correctly.
svn-id: r42649
Diffstat (limited to 'engines')
-rw-r--r-- | engines/draci/sprite.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/draci/sprite.cpp b/engines/draci/sprite.cpp index 23cc386a67..97118dd506 100644 --- a/engines/draci/sprite.cpp +++ b/engines/draci/sprite.cpp @@ -180,7 +180,7 @@ void Sprite::drawScaled(Surface *surface, bool markDirty) const { // Fetch index of current row to be drawn int row = rowIndices[i]; - for (int j = 0, q = sourceRect.left; j < columns; ++j, ++q) { + for (int j = 0; j < columns; ++j) { // Fetch index of current column to be drawn int column = columnIndices[j]; @@ -190,9 +190,9 @@ void Sprite::drawScaled(Surface *surface, bool markDirty) const { // Draw the sprite mirrored if the _mirror flag is set if (_mirror) { - dst[sourceRect.right - q - 1] = src[row * _width + column]; + dst[sourceRect.left + columns - j - 1] = src[row * _width + column]; } else { - dst[q] = src[row * _width + column]; + dst[sourceRect.left + j] = src[row * _width + column]; } } } |