Skip to content

Commit

Permalink
fix high bits of tilemap entries
Browse files Browse the repository at this point in the history
  • Loading branch information
yeastplume committed Feb 29, 2020
1 parent 28914c9 commit 64b0ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vera/src/tilemap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl Assemblable for VeraTileMapEntry {
VeraTileMapEntry::Tile234(index, pal_offset, _, _) => {
let byte0 = (index & 0x00ff) as u8;
let mut byte1 = pal_offset / 16 << 4;
let high_index = (index & 0xff00) >> 14;
let high_index = (index >> 8) as u8 & 3;
byte1 |= high_index as u8;
(byte0, byte1)
}
Expand Down

0 comments on commit 64b0ce1

Please sign in to comment.