diff --git a/es-app/src/guis/GuiGamelistFilter.cpp b/es-app/src/guis/GuiGamelistFilter.cpp index 27c4b5481..a2c9ff719 100644 --- a/es-app/src/guis/GuiGamelistFilter.cpp +++ b/es-app/src/guis/GuiGamelistFilter.cpp @@ -50,7 +50,7 @@ void GuiGamelistFilter::initializeMenu() mMenu.addButton("BACK", "back", std::bind(&GuiGamelistFilter::applyFilters, this)); - mMenu.setPosition((Renderer::getScreenWidth() - mMenu.getSize().x()) / 2, + mMenu.setPosition((Renderer::getScreenWidth() - mMenu.getSize().x()) / 2.0f, Renderer::getScreenHeight() * 0.15f); // Save the initial filter values to be able to check later if any changes were made. diff --git a/es-app/src/guis/GuiGamelistOptions.cpp b/es-app/src/guis/GuiGamelistOptions.cpp index 2db9b5d2a..ef428eb7d 100644 --- a/es-app/src/guis/GuiGamelistOptions.cpp +++ b/es-app/src/guis/GuiGamelistOptions.cpp @@ -141,8 +141,9 @@ GuiGamelistOptions::GuiGamelistOptions( } } - // Add the filters entry, unless this is the grouped custom collections list. - if (!mIsCustomCollectionGroup) { + // Add the filters entry, unless this is the grouped custom collections system or if there + // are no games (which should only happen for ungrouped custom collections). + if (!mIsCustomCollectionGroup && system->getRootFolder()->getChildren().size() > 0) { if (system->getName() != "recent" && Settings::getInstance()->getBool("GamelistFilters")) { row.elements.clear(); row.addElement(std::make_shared @@ -212,8 +213,8 @@ GuiGamelistOptions::GuiGamelistOptions( // Center the menu. setSize(static_cast(Renderer::getScreenWidth()), static_cast(Renderer::getScreenHeight())); - mMenu.setPosition((mSize.x() - mMenu.getSize().x()) / 2, (mSize.y() - - mMenu.getSize().y()) / 2); + mMenu.setPosition((mSize.x() - mMenu.getSize().x()) / 2.0f, (mSize.y() - + mMenu.getSize().y()) / 2.0f); } GuiGamelistOptions::~GuiGamelistOptions()