[Scummvm-cvs-logs] scummvm master -> 547fcecf3879a7953e67ba6a3bcba8e3d06ffb00

sev- sev at scummvm.org
Fri Jun 17 13:31:47 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
547fcecf38 GRAPHICS: Fix 1bpp BMP drawing


Commit: 547fcecf3879a7953e67ba6a3bcba8e3d06ffb00
    https://github.com/scummvm/scummvm/commit/547fcecf3879a7953e67ba6a3bcba8e3d06ffb00
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-06-17T13:31:28+02:00

Commit Message:
GRAPHICS: Fix 1bpp BMP drawing

Changed paths:
    image/codecs/bmp_raw.cpp



diff --git a/image/codecs/bmp_raw.cpp b/image/codecs/bmp_raw.cpp
index bab96f6..0dc1e9f 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) {






More information about the Scummvm-git-logs mailing list