From b987dd9cff39dcd87e44418f436d256f51d56d26 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 9 Apr 2022 20:18:53 +0200 Subject: [PATCH] Fixed a row positioning issue in GuiAlternativeEmulators. --- es-app/src/guis/GuiAlternativeEmulators.cpp | 1 + es-app/src/guis/GuiSettings.h | 1 + 2 files changed, 2 insertions(+) diff --git a/es-app/src/guis/GuiAlternativeEmulators.cpp b/es-app/src/guis/GuiAlternativeEmulators.cpp index 17c06ad11..f2ff420e6 100644 --- a/es-app/src/guis/GuiAlternativeEmulators.cpp +++ b/es-app/src/guis/GuiAlternativeEmulators.cpp @@ -220,6 +220,7 @@ void GuiAlternativeEmulators::selectorWindow(SystemData* system) auto menuPos = s->getMenuPosition(); s->setMenuPosition(glm::vec3 {(s->getSize().x - menuSize.x) / 2.0f, menuPos.y, menuPos.z}); + s->refreshList(); mWindow->pushGui(s); } diff --git a/es-app/src/guis/GuiSettings.h b/es-app/src/guis/GuiSettings.h index 8809b5ac3..002dbd251 100644 --- a/es-app/src/guis/GuiSettings.h +++ b/es-app/src/guis/GuiSettings.h @@ -42,6 +42,7 @@ public: void setMenuSize(glm::vec2 size) { mMenu.setSize(size); } glm::vec3 getMenuPosition() { return mMenu.getPosition(); } void setMenuPosition(glm::vec3 position) { mMenu.setPosition(glm::round(position)); } + void refreshList() { mMenu.getList()->onSizeChanged(); } void setNeedsSaving(bool state = true) { mNeedsSaving = state; } void setNeedsReloadHelpPrompts() { mNeedsReloadHelpPrompts = true; }