From 3a55adbf5eaf2d80b48de4ff680452996cc3d1a8 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 14 Jul 2012 05:09:19 +0200 Subject: GRAPHICS: Fix a bug in crossBlit with 3Bpp source. Formerly it added 2 to the source pixel pointer instead of 3. --- graphics/conversion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3