Fix bug in Display#draw_sprite. Display now works properly
This commit is contained in:
parent
6b116d2592
commit
80850e6fe8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue