Small case namespaces

This commit is contained in:
2025-12-28 23:15:42 +00:00
parent 85295ae4d8
commit ae48f96fe8
64 changed files with 356 additions and 311 deletions
+6 -6
View File
@@ -1,8 +1,8 @@
#include "Renderer.h"
namespace Display::Graphics
namespace display::graphics
{
Renderer::Renderer(Framebuffer &framebuffer, Model::HostRegistry &registry)
Renderer::Renderer(Framebuffer &framebuffer, model::HostRegistry &registry)
: framebuffer(framebuffer),
registry(registry)
{
@@ -15,7 +15,7 @@ namespace Display::Graphics
header.draw(framebuffer, textRenderer, START_X, START_Y);
int blocksPerRow =
(SCREEN_WIDTH + BLOCK_GAP) / (Display::UI::HostBlock::BLOCK_WIDTH + BLOCK_GAP);
(SCREEN_WIDTH + BLOCK_GAP) / (display::ui::hostblock::BLOCK_WIDTH + BLOCK_GAP);
if (blocksPerRow < 1)
blocksPerRow = 1;
@@ -26,8 +26,8 @@ namespace Display::Graphics
int col = index % blocksPerRow;
int row = index / blocksPerRow;
int x = START_X + col * (Display::UI::HostBlock::BLOCK_WIDTH + BLOCK_GAP);
int y = START_Y + header.height() + BLOCK_GAP + row * (Display::UI::HostBlock::BLOCK_HEIGHT + BLOCK_GAP);
int x = START_X + col * (display::ui::hostblock::BLOCK_WIDTH + BLOCK_GAP);
int y = START_Y + header.height() + BLOCK_GAP + row * (display::ui::hostblock::BLOCK_HEIGHT + BLOCK_GAP);
hostblock.draw(
framebuffer,
@@ -42,4 +42,4 @@ namespace Display::Graphics
framebuffer.present();
}
} // namespace Display::Graphics
} // namespace display::graphics