From 547fcecf3879a7953e67ba6a3bcba8e3d06ffb00 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 17 Jun 2016 13:31:28 +0200 Subject: GRAPHICS: Fix 1bpp BMP drawing --- image/codecs/bmp_raw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'image/codecs/bmp_raw.cpp') 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) { -- cgit v1.2.3