mirror of https://github.com/mgba-emu/mgba.git
Util: Fix build on 1555 color
This commit is contained in:
parent
82d7d9c3eb
commit
b506996d29
|
@ -72,9 +72,9 @@ bool PNGWritePixels(png_structp png, unsigned width, unsigned height, unsigned s
|
|||
row[x * 3 + 1] = (c >> 3) & 0xFC;
|
||||
row[x * 3 + 2] = (c << 3) & 0xF8;
|
||||
#else
|
||||
row[x * ] = (c >> 7) & 0xF8;
|
||||
row[x * + 1] = (c >> 2) & 0xF8;
|
||||
row[x * + 2] = (c << 3) & 0xF8;
|
||||
row[x * 3] = (c >> 7) & 0xF8;
|
||||
row[x * 3 + 1] = (c >> 2) & 0xF8;
|
||||
row[x * 3 + 2] = (c << 3) & 0xF8;
|
||||
#endif
|
||||
#else
|
||||
#ifdef __BIG_ENDIAN__
|
||||
|
|
Loading…
Reference in New Issue