Skip to content

Commit

Permalink
make menu spacing smarter
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Aug 14, 2022
1 parent 7d786b3 commit eec4dd9
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/menusys.c
Expand Up @@ -736,13 +736,8 @@ void menuRenderMenu()
// render, advance
fntRenderString(gTheme->fonts[0], 320, y, ALIGN_CENTER, 0, 0, submenuItemGetText(&it->item), (cp == sitem) ? gTheme->selTextColor : gTheme->textColor);
y += spacing;
if (gHDDStartMode && gEnableWrite) {
if (cp == 7)
y += spacing / 2;
} else {
if (cp == 6)
y += spacing / 2;
}
if (cp == (MENU_ABOUT - 1))
y += spacing / 2;
}

// hints
Expand Down Expand Up @@ -1023,13 +1018,8 @@ void menuRenderGameMenu()
// render, advance
fntRenderString(gTheme->fonts[0], 320, y, ALIGN_CENTER, 0, 0, submenuItemGetText(&it->item), (cp == sitem) ? gTheme->selTextColor : gTheme->textColor);
y += spacing;
#ifdef PADEMU
if (cp == 5 || cp == 7)
y += spacing / 2; // leave a blank space before rendering Save & Remove Settings.
#else
if (cp == 3 || cp == 5)
if (cp == (GAME_SAVE_CHANGES - 1) || cp == (GAME_REMOVE_CHANGES - 1))
y += spacing / 2;
#endif
}

// hints
Expand Down

0 comments on commit eec4dd9

Please sign in to comment.