From b17b7194a6d7e75764782b19e663edc87fb6e1f8 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 24 Jan 2023 18:30:04 +0100 Subject: [PATCH] Fixed a small vertical positioning issue for the main menu. --- es-app/src/guis/GuiMenu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index d60453fca..07af31d7d 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -42,7 +42,7 @@ GuiMenu::GuiMenu() : mMenu {"MAIN MENU"} { - bool isFullUI = UIModeController::getInstance()->isUIModeFull(); + bool isFullUI {UIModeController::getInstance()->isUIModeFull()}; if (isFullUI) addEntry("SCRAPER", 0x777777FF, true, [this] { openScraperOptions(); }); @@ -73,7 +73,8 @@ GuiMenu::GuiMenu() addChild(&mMenu); addVersionInfo(); setSize(mMenu.getSize()); - setPosition((Renderer::getScreenWidth() - mSize.x) / 2.0f, Renderer::getScreenHeight() * 0.13f); + setPosition((Renderer::getScreenWidth() - mSize.x) / 2.0f, + std::round(Renderer::getScreenHeight() * 0.13f)); } GuiMenu::~GuiMenu()