Skip to content

Commit

Permalink
Fixed small text on main screen
Browse files Browse the repository at this point in the history
Removing this optimization fixes it, but at the cost of some RAM and increased load time... hopefully negligible on both fronts
  • Loading branch information
Mode8fx committed Apr 15, 2024
1 parent 48c59ed commit af62148
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Trogdor-Reburninated/src/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,11 +667,12 @@ void Menu::renderMenu() {
void InitializeMenus() {
TTF_Init();
// if the menu font would end up being the same as font_serif_white_6_mult, just use that instead of initializing an exclusive font
if (font_serif_white_6_mult.size == getDesiredFontSize(&font_serif_white_8)) {
menuFont = &font_serif_white_6_mult;
} else {
menuFont = &font_serif_white_8;
}
//if (font_serif_white_6_mult.size == getDesiredFontSize(&font_serif_white_8)) {
// menuFont = &font_serif_white_6_mult;
//} else {
// menuFont = &font_serif_white_8;
//}
menuFont = &font_serif_white_8;
setFont(menuFont, serif_v01_ttf, serif_v01_ttf_len, 8, 5, TTF_STYLE_NORMAL, color_white, true);
menuFont_frozen = &font_serif_gray_8;
setFont(&font_serif_gray_8, serif_v01_ttf, serif_v01_ttf_len, 8, 5, TTF_STYLE_NORMAL, color_gray, true);
Expand Down

0 comments on commit af62148

Please sign in to comment.