aboutsummaryrefslogtreecommitdiff
path: root/image/codecs/bmp_raw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'image/codecs/bmp_raw.cpp')
-rw-r--r--image/codecs/bmp_raw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/image/codecs/bmp_raw.cpp b/image/codecs/bmp_raw.cpp
index bab96f693e..68d70f25f6 100644
--- a/image/codecs/bmp_raw.cpp
+++ b/image/codecs/bmp_raw.cpp
@@ -50,7 +50,7 @@ const Graphics::Surface *BitmapRawDecoder::decodeFrame(Common::SeekableReadStrea
if (_bitsPerPixel == 1) {
srcPitch = (_width + 7) / 8;
- extraDataLength = (srcPitch % 2) ? 2 - (srcPitch % 4) : 0;
+ extraDataLength = (srcPitch % 2) ? 2 - (srcPitch % 2) : 0;
}
if (_bitsPerPixel == 1) {
@@ -59,7 +59,7 @@ const Graphics::Surface *BitmapRawDecoder::decodeFrame(Common::SeekableReadStrea
for (int j = 0; j != _width;) {
byte color = stream.readByte();
for (int k = 0; k < 8; k++) {
- *dst++ = (color & 0x80) ? 0x01 : 0x00;
+ *dst++ = (color & 0x80) ? 0x0f : 0x00;
color <<= 1;
j++;
if (j == _width) {