Util: Fix build on 1555 color

This commit is contained in:
Jeffrey Pfau 2016-10-21 13:54:01 -07:00
parent 82d7d9c3eb
commit b506996d29
1 changed files with 3 additions and 3 deletions

View File

@ -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__