Small case namespaces
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "Renderer.h"
|
||||
|
||||
namespace Display::Graphics
|
||||
namespace display::graphics
|
||||
{
|
||||
Renderer::Renderer(Framebuffer &framebuffer, Model::HostRegistry ®istry)
|
||||
Renderer::Renderer(Framebuffer &framebuffer, model::HostRegistry ®istry)
|
||||
: 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
|
||||
|
||||
Reference in New Issue
Block a user