From b506996d294604f728a7aeabb4230a5cf6b86af6 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 21 Oct 2016 13:54:01 -0700 Subject: [PATCH] Util: Fix build on 1555 color --- src/util/png-io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/png-io.c b/src/util/png-io.c index bac188c8d..09631dbe4 100644 --- a/src/util/png-io.c +++ b/src/util/png-io.c @@ -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__