diff options
author | Paul Gilbert | 2012-09-13 22:55:50 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-09-13 22:55:50 +1000 |
commit | ec4c7a8baf5f276914c287f1f777e5f27d98eb0e (patch) | |
tree | bfdf1fe4debc59d522c500df91346f9be1a2525f /engines/hopkins | |
parent | e66ce45d0ab44bcc0e0ce10864da5bf0296cf075 (diff) | |
download | scummvm-rg350-ec4c7a8baf5f276914c287f1f777e5f27d98eb0e.tar.gz scummvm-rg350-ec4c7a8baf5f276914c287f1f777e5f27d98eb0e.tar.bz2 scummvm-rg350-ec4c7a8baf5f276914c287f1f777e5f27d98eb0e.zip |
HOPKINS: Fix blitting 8-bit images to the screen
Diffstat (limited to 'engines/hopkins')
-rw-r--r-- | engines/hopkins/graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp index 2fbf12f76a..d326598e56 100644 --- a/engines/hopkins/graphics.cpp +++ b/engines/hopkins/graphics.cpp @@ -582,7 +582,7 @@ void GraphicsManager::m_scroll16(const byte *surface, int xs, int ys, int width, uint16 *lineDestP = destP; for (int xp = 0; xp < width; ++xp) - *lineDestP++ = PAL_PIXELS[*lineSrcP++]; + *lineDestP++ = *(uint16 *)&PAL_PIXELS[*lineSrcP++ * 2]; // Move to the start of the next line srcP += nbrligne2; |