Updated bottom menu
This commit is contained in:
@ -38,7 +38,9 @@ std::array<SDL_FRect, 5> computeMenuButtonRects(const MenuLayoutParams& p) {
|
||||
float centerX = LOGICAL_W * 0.5f + contentOffsetX;
|
||||
float bottomY = LOGICAL_H + contentOffsetY - marginBottom;
|
||||
float smallCY = bottomY - smallH * 0.5f;
|
||||
float playCY = smallCY - smallH * 0.5f - 16.0f - playH * 0.5f;
|
||||
// Extra breathing room between PLAY and the bottom row (requested).
|
||||
const float rowGap = 34.0f;
|
||||
float playCY = smallCY - smallH * 0.5f - rowGap - playH * 0.5f;
|
||||
|
||||
std::array<SDL_FRect, MENU_BTN_COUNT> rects{};
|
||||
rects[0] = SDL_FRect{ centerX - playW * 0.5f, playCY - playH * 0.5f, playW, playH };
|
||||
|
||||
Reference in New Issue
Block a user