Fixed a row positioning issue in GuiAlternativeEmulators.

This commit is contained in:
Leon Styhre 2022-04-09 20:18:53 +02:00
parent 72ce3d33a8
commit b987dd9cff
2 changed files with 2 additions and 0 deletions

View file

@ -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);
}

View file

@ -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; }