mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed a row positioning issue in GuiAlternativeEmulators.
This commit is contained in:
parent
72ce3d33a8
commit
b987dd9cff
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue