summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid McMackins II <contact@mcmackins.org>2016-06-02 20:45:07 -0500
committerDavid McMackins II <contact@mcmackins.org>2016-06-02 20:45:07 -0500
commit874284f83919b6218721ca24e20a45e0506b0eee (patch)
tree9c515002243b8570c53cb3ac3155703406e6ac50
parent346084759039c6aba5630d3e790a62b51c274fb2 (diff)
Fix color bytes
-rw-r--r--gbimg.py4
1 files 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