mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Made the menus slightly wider to accomodate the new standard font.
This commit is contained in:
parent
2f3a2a6157
commit
ae55eda233
|
@ -337,8 +337,8 @@ GuiMetaDataEd::GuiMetaDataEd(
|
||||||
mGrid.setEntry(mButtons, Vector2i(0, 2), true, false);
|
mGrid.setEntry(mButtons, Vector2i(0, 2), true, false);
|
||||||
|
|
||||||
// Resize + center.
|
// Resize + center.
|
||||||
float width = static_cast<float>(std::min(Renderer::getScreenHeight(),
|
float width = static_cast<float>(std::min(static_cast<int>(Renderer::getScreenHeight() *
|
||||||
static_cast<int>(Renderer::getScreenWidth() * 0.90f)));
|
1.05f), static_cast<int>(Renderer::getScreenWidth() * 0.90f)));
|
||||||
setSize(width, Renderer::getScreenHeight() * 0.83f);
|
setSize(width, Renderer::getScreenHeight() * 0.83f);
|
||||||
setPosition((Renderer::getScreenWidth() - mSize.x()) / 2,
|
setPosition((Renderer::getScreenWidth() - mSize.x()) / 2,
|
||||||
(Renderer::getScreenHeight() - mSize.y()) / 2);
|
(Renderer::getScreenHeight() - mSize.y()) / 2);
|
||||||
|
|
|
@ -98,8 +98,8 @@ void MenuComponent::updateSize()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float width = static_cast<float>(std::min(static_cast<int>(Renderer::getScreenHeight()),
|
float width = static_cast<float>(std::min(static_cast<int>(Renderer::getScreenHeight() *
|
||||||
static_cast<int>(Renderer::getScreenWidth() * 0.90f)));
|
1.05f), static_cast<int>(Renderer::getScreenWidth() * 0.90f)));
|
||||||
setSize(width, height);
|
setSize(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue