aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2013-07-12 16:20:01 +0200
committeruruk2013-07-12 16:20:01 +0200
commitb4f564276578413c6bd152461069d199a78b3eac (patch)
tree7bb1e8d91d77482040486e72e39e3ffb75ad51ab /engines/avalanche
parentc18b41b21dd3674b44c07ef68f317822bcfb1d37 (diff)
downloadscummvm-rg350-b4f564276578413c6bd152461069d199a78b3eac.tar.gz
scummvm-rg350-b4f564276578413c6bd152461069d199a78b3eac.tar.bz2
scummvm-rg350-b4f564276578413c6bd152461069d199a78b3eac.zip
AVALANCHE: Revise Lucerna::load().
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/lucerna2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp
index 5cbd46c408..bb22530fb5 100644
--- a/engines/avalanche/lucerna2.cpp
+++ b/engines/avalanche/lucerna2.cpp
@@ -236,11 +236,11 @@ void Lucerna::load(byte n) { /* Load2, actually */
for (byte plane = 0; plane < 4; plane++)
for (uint16 y = 0; y < 151; y++)
- for (uint16 x = 0; x < 640/8; x++) {
+ for (uint16 x = 0; x < 640; x += 8) {
byte pixel = f.readByte();
for (byte i = 0; i < 8; i++) {
byte pixelBit = (pixel >> i) & 1;
- *(byte *)background.getBasePtr(x * 8, y) += (pixelBit << plane);
+ *(byte *)background.getBasePtr(x + i, y) += (pixelBit << plane);
}
}