fix: put pixel remove empty line

This commit is contained in:
Starnakin 2024-12-09 11:57:10 +01:00
parent bedbca1154
commit d39f708a51

View File

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