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; }