aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins
diff options
context:
space:
mode:
authorPaul Gilbert2012-09-13 22:55:50 +1000
committerPaul Gilbert2012-09-13 22:55:50 +1000
commitec4c7a8baf5f276914c287f1f777e5f27d98eb0e (patch)
treebfdf1fe4debc59d522c500df91346f9be1a2525f /engines/hopkins
parente66ce45d0ab44bcc0e0ce10864da5bf0296cf075 (diff)
downloadscummvm-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.cpp2
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;