Fix displaying GuiIcons which already have imageData

This commit is contained in:
Maschell 2020-02-20 15:19:48 +01:00
parent 340baed8ed
commit 7ef3e4dc2e

View File

@ -125,7 +125,11 @@ void GuiIconGrid::OnGameButtonClick(GuiButton *button, const GuiController *cont
void GuiIconGrid::OnGameTitleAdded(gameInfo * info) {
DEBUG_FUNCTION_LINE("Adding %016llX\n", info->titleId);
GameIcon * image = new GameIcon(&noIcon);
GuiImageData * imageData = &noIcon;
if(info->imageData != NULL){
imageData = info->imageData;
}
GameIcon * image = new GameIcon(imageData);
image->setRenderReflection(false);
image->setStrokeRender(false);
image->setSelected(info->titleId == selectedGame);