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:
parent
a0f46e9396
commit
3a55adbf5e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue