fix: put pixel remove empty line
This commit is contained in:
parent
bedbca1154
commit
d39f708a51
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user