diff options
Diffstat (limited to 'image')
-rw-r--r-- | image/codecs/bmp_raw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/image/codecs/bmp_raw.cpp b/image/codecs/bmp_raw.cpp index bab96f693e..0dc1e9fadd 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) { |