diff options
author | David McMackins II <contact@mcmackins.org> | 2016-06-02 20:45:07 -0500 |
---|---|---|
committer | David McMackins II <contact@mcmackins.org> | 2016-06-02 20:45:07 -0500 |
commit | 874284f83919b6218721ca24e20a45e0506b0eee (patch) | |
tree | 9c515002243b8570c53cb3ac3155703406e6ac50 | |
parent | 346084759039c6aba5630d3e790a62b51c274fb2 (diff) |
Fix color bytes
-rw-r--r-- | gbimg.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |