diff options
author | Eugene Sandulenko | 2011-06-16 23:33:26 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2011-06-16 23:35:02 +0300 |
commit | 7d7696272177c9d6b2840d5acfee68c4204b9fb5 (patch) | |
tree | 5b459a856db92ee85c7bbba6e2f5f8d6475becbf /graphics | |
parent | 6fe3e63ed1dc190c9ef6cf21b0d1890b5ebea03a (diff) | |
download | scummvm-rg350-7d7696272177c9d6b2840d5acfee68c4204b9fb5.tar.gz scummvm-rg350-7d7696272177c9d6b2840d5acfee68c4204b9fb5.tar.bz2 scummvm-rg350-7d7696272177c9d6b2840d5acfee68c4204b9fb5.zip |
GRAPHICS: Fix decoding of 4bpp PNGs
Fixes checkbox in options menu in Sword25.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/png.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/png.cpp b/graphics/png.cpp index e6dceab3fa..c250433222 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; } } |