Minor tweaks.

This commit is contained in:
J-D-K 2025-08-18 21:58:56 -04:00
parent c76ae60092
commit 951707b372
4 changed files with 6 additions and 6 deletions

View File

@ -50,8 +50,8 @@ ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE
# NOTE: For some reason, devkitpro no longer has freetype-config included? Also, using pkg-config causes conflicts with
# my local pkg-config and I don't feel like dealing with CMake for all of this right now.
CFLAGS := $(INCLUDE) -D__SWITCH__ `sdl2-config --cflags` \
`curl-config --cflags` -g -Wall -O2 -ffunction-sections -ffast-math -fmax-errors=1 \
CFLAGS := $(INCLUDE) -D__SWITCH__ `sdl2-config --cflags` `curl-config --cflags`\
-g -Wall -O2 -ffunction-sections -ffast-math -fmax-errors=1 \
$(ARCH) $(DEFINES)
CXXFLAGS:= $(CFLAGS) -fno-rtti -fno-exceptions -std=c++23

View File

@ -23,7 +23,7 @@ namespace
TextTitleSelectState::TextTitleSelectState(data::User *user)
: TitleSelectCommon()
, m_user(user)
, m_titleSelectMenu(ui::Menu::create(32, 8, 1000, 20, 555))
, m_titleSelectMenu(ui::Menu::create(32, 8, 1000, 22, 555))
, m_renderTarget(sdl::TextureManager::load(SECONDARY_TARGET, 1080, 555, SDL_TEXTUREACCESS_TARGET))
{
TextTitleSelectState::refresh();

View File

@ -12,7 +12,7 @@ namespace
}
ui::IconMenu::IconMenu(int x, int y, int renderTargetHeight)
: Menu(x, y, 152, 80, renderTargetHeight)
: Menu(x, y, 152, 84, renderTargetHeight)
{
// This needs to be overriden from the base state.
m_boundingBox->set_width_height(152, 146);

View File

@ -63,10 +63,10 @@ void ui::Menu::render(sdl::SharedTexture &target, bool hasFocus)
{
if (hasFocus)
{
m_boundingBox->set_xy(m_x - 4, tempY - 5);
m_boundingBox->set_xy(m_x - 4, tempY - 4);
m_boundingBox->render(target, hasFocus);
}
sdl::render_rect_fill(m_optionTarget, 8, 8, 4, m_optionHeight - 16, colors::BLUE_GREEN);
sdl::render_rect_fill(m_optionTarget, 8, 8, 4, m_optionHeight - 14, colors::BLUE_GREEN);
m_optionScroll->render(m_optionTarget, hasFocus);
}
else { sdl::text::render(m_optionTarget, 24, m_textY, m_fontSize, sdl::text::NO_WRAP, colors::WHITE, m_options[i]); }