Made the menus slightly wider to accomodate the new standard font.

This commit is contained in:
Leon Styhre 2021-02-01 00:12:04 +01:00
parent 2f3a2a6157
commit ae55eda233
2 changed files with 4 additions and 4 deletions

View file

@ -337,8 +337,8 @@ GuiMetaDataEd::GuiMetaDataEd(
mGrid.setEntry(mButtons, Vector2i(0, 2), true, false);
// Resize + center.
float width = static_cast<float>(std::min(Renderer::getScreenHeight(),
static_cast<int>(Renderer::getScreenWidth() * 0.90f)));
float width = static_cast<float>(std::min(static_cast<int>(Renderer::getScreenHeight() *
1.05f), static_cast<int>(Renderer::getScreenWidth() * 0.90f)));
setSize(width, Renderer::getScreenHeight() * 0.83f);
setPosition((Renderer::getScreenWidth() - mSize.x()) / 2,
(Renderer::getScreenHeight() - mSize.y()) / 2);

View file

@ -98,8 +98,8 @@ void MenuComponent::updateSize()
}
}
float width = static_cast<float>(std::min(static_cast<int>(Renderer::getScreenHeight()),
static_cast<int>(Renderer::getScreenWidth() * 0.90f)));
float width = static_cast<float>(std::min(static_cast<int>(Renderer::getScreenHeight() *
1.05f), static_cast<int>(Renderer::getScreenWidth() * 0.90f)));
setSize(width, height);
}