Fixed an issue with refining ScreenScraper searches for arcade games.

Also did a tiny cosmetic code change in Window.cpp.
This commit is contained in:
Leon Styhre 2020-12-16 18:46:38 +01:00
parent 6c62b23da8
commit e6f16be221
2 changed files with 3 additions and 3 deletions

View file

@ -675,7 +675,8 @@ void GuiScraperSearch::openInputScreen(ScraperSearchParams& params)
// If searching based on the actual file name, then expand to the full game name // If searching based on the actual file name, then expand to the full game name
// in case the scraper is set to TheGamesDB and it's an arcade game. This is required // in case the scraper is set to TheGamesDB and it's an arcade game. This is required
// as TheGamesDB has issues with searches using the short MAME names. // as TheGamesDB has issues with searches using the short MAME names.
if (params.game->isArcadeGame()) if (params.game->isArcadeGame() &&
Settings::getInstance()->getString("Scraper") == "thegamesdb")
searchString = MameNames::getInstance()->getCleanName(params.game->getCleanName()); searchString = MameNames::getInstance()->getCleanName(params.game->getCleanName());
else else
searchString = params.game->getCleanName(); searchString = params.game->getCleanName();

View file

@ -329,8 +329,7 @@ void Window::render()
Renderer::shaderParameters blurParameters; Renderer::shaderParameters blurParameters;
blurParameters.shaderPasses = 3; blurParameters.shaderPasses = 3;
Renderer::shaderPostprocessing(Renderer::SHADER_BLUR_HORIZONTAL | Renderer::shaderPostprocessing(Renderer::SHADER_BLUR_HORIZONTAL |
Renderer::SHADER_BLUR_VERTICAL, Renderer::SHADER_BLUR_VERTICAL, blurParameters, processedTexture);
blurParameters, processedTexture);
mPostprocessedBackground->initFromPixels(processedTexture, mPostprocessedBackground->initFromPixels(processedTexture,
Renderer::getScreenWidth(), Renderer::getScreenHeight()); Renderer::getScreenWidth(), Renderer::getScreenHeight());