diff options
author | Eugene Sandulenko | 2016-06-17 13:31:28 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-06-17 13:31:28 +0200 |
commit | 547fcecf3879a7953e67ba6a3bcba8e3d06ffb00 (patch) | |
tree | e3fa7293bc79656c6009a51099c09005568378d1 /image | |
parent | 19be66f15004e79ff7caa8dd64aee474c146098b (diff) | |
download | scummvm-rg350-547fcecf3879a7953e67ba6a3bcba8e3d06ffb00.tar.gz scummvm-rg350-547fcecf3879a7953e67ba6a3bcba8e3d06ffb00.tar.bz2 scummvm-rg350-547fcecf3879a7953e67ba6a3bcba8e3d06ffb00.zip |
GRAPHICS: Fix 1bpp BMP drawing
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) { |