Code style update.

This commit is contained in:
J-D-K
2025-02-21 13:31:40 -05:00
parent 88e66992ed
commit 11672043c3
71 changed files with 1027 additions and 810 deletions

View File

@@ -12,21 +12,24 @@ namespace
ExtrasMenuState::ExtrasMenuState(void)
: m_extrasMenu(32, 8, 1000, 24, 555),
m_renderTarget(sdl::TextureManager::createLoadTexture(SECONDARY_TARGET, 1080, 555, SDL_TEXTUREACCESS_STATIC | SDL_TEXTUREACCESS_TARGET))
m_renderTarget(sdl::TextureManager::createLoadTexture(SECONDARY_TARGET,
1080,
555,
SDL_TEXTUREACCESS_STATIC | SDL_TEXTUREACCESS_TARGET))
{
const char *extrasString = nullptr;
int currentString = 0;
while ((extrasString = strings::getByName(strings::names::EXTRAS_MENU, currentString++)) != nullptr)
while ((extrasString = strings::get_by_name(strings::names::EXTRAS_MENU, currentString++)) != nullptr)
{
m_extrasMenu.addOption(extrasString);
m_extrasMenu.add_option(extrasString);
}
}
void ExtrasMenuState::update(void)
{
m_extrasMenu.update(AppState::hasFocus());
m_extrasMenu.update(AppState::has_focus());
if (input::buttonPressed(HidNpadButton_B))
if (input::button_pressed(HidNpadButton_B))
{
AppState::deactivate();
}
@@ -35,6 +38,6 @@ void ExtrasMenuState::update(void)
void ExtrasMenuState::render(void)
{
m_renderTarget->clear(colors::TRANSPARENT);
m_extrasMenu.render(m_renderTarget->get(), AppState::hasFocus());
m_extrasMenu.render(m_renderTarget->get(), AppState::has_focus());
m_renderTarget->render(NULL, 201, 91);
}