From d39f708a51ac0b2bc1b85940fa3b213c55b3a2e8 Mon Sep 17 00:00:00 2001 From: Starnakin Date: Mon, 9 Dec 2024 11:57:10 +0100 Subject: [PATCH] fix: put pixel remove empty line --- src/kernel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernel.c b/src/kernel.c index c45e836..3db31e6 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -29,7 +29,8 @@ static void put_pixel(uint32_t color, uint32_t x, uint32_t y) { - const uint32_t coords = x + y * display.pitch; + // / 4 cause display.buff is in 32bit instead of 8bit + const uint32_t coords = x + y*display.pitch / 4; display.buff[coords] = color; }