diff options
author | Johannes Schickel | 2012-07-14 05:09:19 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-08-28 02:27:48 +0200 |
commit | 3a55adbf5eaf2d80b48de4ff680452996cc3d1a8 (patch) | |
tree | 30d262a3b1dc70556b6c098cfdf929f4a51d362c | |
parent | a0f46e9396861b9eb4ab8adebcbc4739e44b9716 (diff) | |
download | scummvm-rg350-3a55adbf5eaf2d80b48de4ff680452996cc3d1a8.tar.gz scummvm-rg350-3a55adbf5eaf2d80b48de4ff680452996cc3d1a8.tar.bz2 scummvm-rg350-3a55adbf5eaf2d80b48de4ff680452996cc3d1a8.zip |
GRAPHICS: Fix a bug in crossBlit with 3Bpp source.
Formerly it added 2 to the source pixel pointer instead of 3.
-rw-r--r-- | graphics/conversion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/conversion.cpp b/graphics/conversion.cpp index 84f9bcbb9c..db99679d41 100644 --- a/graphics/conversion.cpp +++ b/graphics/conversion.cpp @@ -96,7 +96,7 @@ bool crossBlit(byte *dst, const byte *src, col++; #endif for (uint y = 0; y < h; ++y) { - for (uint x = 0; x < w; ++x, src += 2, dst += 4) { + for (uint x = 0; x < w; ++x, src += 3, dst += 4) { memcpy(col, src, 3); srcFmt.colorToARGB(color, a, r, g, b); color = dstFmt.ARGBToColor(a, r, g, b); |