aboutsummaryrefslogtreecommitdiff
path: root/graphics/conversion.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-07-14 05:09:19 +0200
committerJohannes Schickel2012-08-28 02:27:48 +0200
commit3a55adbf5eaf2d80b48de4ff680452996cc3d1a8 (patch)
tree30d262a3b1dc70556b6c098cfdf929f4a51d362c /graphics/conversion.cpp
parenta0f46e9396861b9eb4ab8adebcbc4739e44b9716 (diff)
downloadscummvm-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.
Diffstat (limited to 'graphics/conversion.cpp')
-rw-r--r--graphics/conversion.cpp2
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);