diff options
author | Bendegúz Nagy | 2016-08-22 19:06:57 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 22a79ac9652a42b0ff08791ebd69b047db170cb5 (patch) | |
tree | 32ee323c565ef9d32a109da46b9136b9a4dba38f /engines | |
parent | 1a0fe29af818c5771eb3846826dd87697f6f57c5 (diff) | |
download | scummvm-rg350-22a79ac9652a42b0ff08791ebd69b047db170cb5.tar.gz scummvm-rg350-22a79ac9652a42b0ff08791ebd69b047db170cb5.tar.bz2 scummvm-rg350-22a79ac9652a42b0ff08791ebd69b047db170cb5.zip |
DM: Fix drawing of some dungeon items
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dm/gfx.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp index 7760f20099..5c4bb7e2a8 100644 --- a/engines/dm/gfx.cpp +++ b/engines/dm/gfx.cpp @@ -2750,15 +2750,13 @@ void DisplayMan::f129_blitToBitmapShrinkWithPalChange(byte *srcBitmap, byte *des warning(false, "MISSING CODE: No palette change takes place in f129_blitToBitmapShrinkWithPalChange"); - if (destPixelWidth % 8) - destPixelWidth = (destPixelWidth / 8) * 8 + 8; + destPixelWidth = (destPixelWidth + 1) & 0xFFFE; uint32 scaleX = (kScaleThreshold * srcPixelWidth) / destPixelWidth; uint32 scaleY = (kScaleThreshold * srcHeight) / destHeight; // Loop through drawing output lines for (uint32 destY = 0, scaleYCtr = 0; destY < (uint32)destHeight; ++destY, scaleYCtr += scaleY) { - const byte *srcLine = &srcBitmap[(scaleYCtr / kScaleThreshold) * srcPixelWidth]; byte *destLine = &destBitmap[destY * destPixelWidth]; |