Add correct fonts
This commit is contained in:
@@ -12,6 +12,8 @@ namespace Display::Graphics
|
||||
{
|
||||
framebuffer.clear(Color{0, 0, 0});
|
||||
|
||||
header.draw(framebuffer, textRenderer, START_X, START_Y);
|
||||
|
||||
int blocksPerRow =
|
||||
(SCREEN_WIDTH + BLOCK_GAP) / (Display::UI::HostBlock::BLOCK_WIDTH + BLOCK_GAP);
|
||||
if (blocksPerRow < 1)
|
||||
@@ -25,7 +27,7 @@ namespace Display::Graphics
|
||||
int row = index / blocksPerRow;
|
||||
|
||||
int x = START_X + col * (Display::UI::HostBlock::BLOCK_WIDTH + BLOCK_GAP);
|
||||
int y = START_Y + row * (Display::UI::HostBlock::BLOCK_HEIGHT + BLOCK_GAP);
|
||||
int y = START_Y + header.height() + BLOCK_GAP + row * (Display::UI::HostBlock::BLOCK_HEIGHT + BLOCK_GAP);
|
||||
|
||||
hostblock.draw(
|
||||
framebuffer,
|
||||
|
||||
Reference in New Issue
Block a user