aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-24 23:24:07 +0200
committerEugene Sandulenko2016-08-24 23:24:07 +0200
commitfaf52df0653006ad8107e91bb24bc747e4b01e29 (patch)
treec77395141ea810a96e7c9dff053ab7985305604f /engines/director
parent381e8fc51d34ebcb02566b608c201dbe96aad1a0 (diff)
downloadscummvm-rg350-faf52df0653006ad8107e91bb24bc747e4b01e29.tar.gz
scummvm-rg350-faf52df0653006ad8107e91bb24bc747e4b01e29.tar.bz2
scummvm-rg350-faf52df0653006ad8107e91bb24bc747e4b01e29.zip
DIRECTOR: Fix horizontal coordinate calculation in 1bpp uncompressed
Diffstat (limited to 'engines/director')
-rw-r--r--engines/director/images.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/images.cpp b/engines/director/images.cpp
index 2c2553f3ea..b763603a4a 100644
--- a/engines/director/images.cpp
+++ b/engines/director/images.cpp
@@ -142,8 +142,8 @@ bool BITDDecoder::loadStream(Common::SeekableReadStream &stream) {
for (y = 0; y < _surface->h; y++) {
for (x = 0; x < _surface->w; x++) {
byte color = stream.readByte();
- for (int c = 0; c < 8; c++, x++)
- *((byte *)_surface->getBasePtr(x, y)) = (color & (1 << (7 - c))) ? 0 : 0xff;
+ for (int c = 0; c < 8; c++)
+ *((byte *)_surface->getBasePtr(x++, y)) = (color & (1 << (7 - c))) ? 0 : 0xff;
}
}