From 7db7664217ad880cad541632c5d02abdb761cfd3 Mon Sep 17 00:00:00 2001 From: Juergen Stuber Date: Mon, 31 Dec 2018 20:18:37 +0100 Subject: [PATCH] Fix chars mode. --- src/bin/chars/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/chars/main.rs b/src/bin/chars/main.rs index 591588a..aed01ad 100644 --- a/src/bin/chars/main.rs +++ b/src/bin/chars/main.rs @@ -69,7 +69,7 @@ fn main() -> std::io::Result<()> { for i in start_index..(start_index + 8) { let b = buffer[i]; for j in 0..8 { - frame[y][x] = { + frame[y * 8 + i][x * 8 + j] = { if b & (1 << j) != 0 { color } else {