summaryrefslogtreecommitdiff
path: root/gbimg.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbimg.py')
-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