Fix bug in Display#draw_sprite. Display now works properly

This commit is contained in:
Rekai Musuka 2020-07-14 21:04:07 -05:00
parent 6b116d2592
commit 80850e6fe8
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ impl Display {
// Access every bit of the byte
for x_bit_offset in 0..8 {
// The Coordinates of this bit in the gfx buffer
let gfx_x = x + x_bit_offset;
let gfx_x = x + (7 - x_bit_offset);
let gfx_y = y + y_offset as u8;
let bit = (byte >> x_bit_offset) & 0x01;