[Scummvm-cvs-logs] scummvm master -> 7d7696272177c9d6b2840d5acfee68c4204b9fb5
sev-
sev at scummvm.org
Thu Jun 16 22:37:28 CEST 2011
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:
7d76962721 GRAPHICS: Fix decoding of 4bpp PNGs
Commit: 7d7696272177c9d6b2840d5acfee68c4204b9fb5
https://github.com/scummvm/scummvm/commit/7d7696272177c9d6b2840d5acfee68c4204b9fb5
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2011-06-16T13:35:02-07:00
Commit Message:
GRAPHICS: Fix decoding of 4bpp PNGs
Fixes checkbox in options menu in Sword25.
Changed paths:
graphics/png.cpp
diff --git a/graphics/png.cpp b/graphics/png.cpp
index e6dceab..c250433 100644
--- a/graphics/png.cpp
+++ b/graphics/png.cpp
@@ -202,7 +202,7 @@ Graphics::Surface *PNG::getSurface(const PixelFormat &format) {
}
// The surface is a whole scanline wide, skip the rest of it.
if (_header.bitDepth == 4)
- src += output->w / 2;
+ src += output->w / 2 + output->w % 2;
}
}
More information about the Scummvm-git-logs
mailing list