GRAPHICS: Fix a bug in crossBlit with 3Bpp source.

Formerly it added 2 to the source pixel pointer instead of 3.
This commit is contained in:
Johannes Schickel 2012-07-14 05:09:19 +02:00
parent a0f46e9396
commit 3a55adbf5e

View file

@ -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);