mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 23:15:38 +00:00
Some minor adjustments to GuiScraperSearch and GuiThemeDownloader
This commit is contained in:
parent
856f2c8b0b
commit
abc3eab99c
|
@ -177,7 +177,8 @@ GuiScraperSearch::~GuiScraperSearch()
|
||||||
|
|
||||||
void GuiScraperSearch::onSizeChanged()
|
void GuiScraperSearch::onSizeChanged()
|
||||||
{
|
{
|
||||||
mGrid.setSize(glm::vec2 {mSize.x, (mResultList->getRowHeight() * mRowCount) + 0.0f});
|
mGrid.setSize(glm::vec2 {mSize.x, (mResultList->getRowHeight() * mRowCount) +
|
||||||
|
std::round(mRenderer->getScreenHeightModifier())});
|
||||||
|
|
||||||
if (mSize.x == 0 || mSize.y == 0)
|
if (mSize.x == 0 || mSize.y == 0)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1088,8 +1088,9 @@ void GuiThemeDownloader::onSizeChanged()
|
||||||
|
|
||||||
mGrid.setSize(mSize);
|
mGrid.setSize(mSize);
|
||||||
|
|
||||||
mCenterGrid->setSize(glm::vec2 {std::round(mSize.x), (mList->getRowHeight() * 9.0f) +
|
mCenterGrid->setSize(
|
||||||
mRenderer->getScreenHeightModifier()});
|
glm::vec2 {std::round(mSize.x), (mList->getRowHeight() * 9.0f) +
|
||||||
|
std::round(mRenderer->getScreenHeightModifier())});
|
||||||
mCenterGrid->setPosition(glm::vec3 {0.0f, mGrid.getRowHeight(0) + mGrid.getRowHeight(1), 0.0f});
|
mCenterGrid->setPosition(glm::vec3 {0.0f, mGrid.getRowHeight(0) + mGrid.getRowHeight(1), 0.0f});
|
||||||
mBackground.fitTo(mSize);
|
mBackground.fitTo(mSize);
|
||||||
mScreenshot->setMaxSize(mCenterGrid->getColWidth(1) + mCenterGrid->getColWidth(2) +
|
mScreenshot->setMaxSize(mCenterGrid->getColWidth(1) + mCenterGrid->getColWidth(2) +
|
||||||
|
|
Loading…
Reference in a new issue