mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Changed the position of the per-game alternative emulator selector window.
This commit is contained in:
parent
aa8b68f2a9
commit
4c556fc820
|
|
@ -306,13 +306,8 @@ GuiMetaDataEd::GuiMetaDataEd(Window* window,
|
||||||
static_cast<float>(Renderer::getScreenWidth()) * maxWidthModifier;
|
static_cast<float>(Renderer::getScreenWidth()) * maxWidthModifier;
|
||||||
|
|
||||||
s->setMenuSize(glm::vec2{maxWidth, s->getMenuSize().y});
|
s->setMenuSize(glm::vec2{maxWidth, s->getMenuSize().y});
|
||||||
|
s->setMenuPosition(glm::vec3{(s->getSize().x - maxWidth) / 2.0f,
|
||||||
auto menuSize = s->getMenuSize();
|
mPosition.y, mPosition.z});
|
||||||
auto menuPos = s->getMenuPosition();
|
|
||||||
|
|
||||||
s->setMenuPosition(glm::vec3{(s->getSize().x - menuSize.x) / 2.0f,
|
|
||||||
(s->getSize().y - menuSize.y) / 3.0f,
|
|
||||||
menuPos.z});
|
|
||||||
mWindow->pushGui(s);
|
mWindow->pushGui(s);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue