From 2f3a2a6157be2a5584bc2f85acd8aa8552e7940a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 1 Feb 2021 00:08:29 +0100 Subject: [PATCH] Fixed an issue where a GUI element size was incorrectly calculated. --- es-app/src/guis/GuiMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index f4547ecaf..0c7788e46 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -99,7 +99,7 @@ void GuiMenu::openUISettings() if ((*it)->getName() != "retropie") { // If required, abbreviate the system name so it doesn't overlap the setting name. std::string abbreviatedString = Font::get(FONT_SIZE_MEDIUM)-> - getTextMaxWidth((*it)->getFullName(), Renderer::getScreenWidth() * 0.25f); + getTextMaxWidth((*it)->getFullName(), mSize.x() * 0.47f); float sizeDifference = Font::get(FONT_SIZE_MEDIUM)->sizeText((*it)->getFullName()).x() - Font::get(FONT_SIZE_MEDIUM)->sizeText(abbreviatedString).x(); if (sizeDifference > 0) {