From 874284f83919b6218721ca24e20a45e0506b0eee Mon Sep 17 00:00:00 2001 From: David McMackins II Date: Thu, 2 Jun 2016 20:45:07 -0500 Subject: Fix color bytes --- gbimg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gbimg.py b/gbimg.py index 6a3613f..5fda2f0 100644 --- a/gbimg.py +++ b/gbimg.py @@ -78,9 +78,9 @@ class Tileset: for j in range(0, 8 * 3, 3): color = map_palette(blob[(i + j) + ((8 * 3) * tile)]) - if color & 0x02: - byte1 |= bit if color & 0x01: + byte1 |= bit + if color & 0x02: byte2 |= bit bit >>= 1 -- cgit v1.2.3