all repos — mgba @ 451225169dc18686768a5cb58ed70ec0ab5b9914

mGBA Game Boy Advance Emulator

Util: Fix build on 1555 color
Jeffrey Pfau jeffrey@endrift.com
Fri, 21 Oct 2016 13:54:01 -0700
commit

451225169dc18686768a5cb58ed70ec0ab5b9914

parent

6c470e3e5cbdf8a10e1cfa1ae091e25d795d55c3

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/util/png-io.csrc/util/png-io.c

@@ -72,9 +72,9 @@ row[x * 3] = (c >> 8) & 0xF8;

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__