From 3dc6bf7de8c3b0dc278d27df46b93f38b685a8dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Sat, 18 Jun 2022 22:13:18 +0100 Subject: [PATCH] fix: new todo element --- src/chip8_neo.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chip8_neo.rs b/src/chip8_neo.rs index a5b463b..72d3224 100644 --- a/src/chip8_neo.rs +++ b/src/chip8_neo.rs @@ -111,6 +111,8 @@ impl Chip8Neo { for j in 0..8 { x = (x + j) % DISPLAY_WIDTH as u8; let pixel = self.ram[(self.i + offset) as usize]; + + // @todo must switch the pixel values here self.vram[(y * DISPLAY_WIDTH as u8 + x) as usize] = pixel; offset += 1; } -- GitLab