FSUI: Centre disc/exe icon in game list selected preview

The ImGui::Image path was missing the centring logic when drawing svg icons.
Covers where already correctly centred.
This commit is contained in:
TheLastRar authored and lightningterror committed 2025-06-23 15:07:56 +02:00
1 parent e37f8a6521
commit e64fbb2f0e
1 file changed
+6
+6
View File
@@ -7009,6 +7009,9 @@ void FullscreenUI::DrawGameCover(const GameList::Entry* entry, const ImVec2& siz
const ImVec2 image_square(min_size, min_size);
GSTexture* const icon_texture = GetTextureForGameListEntryType(entry->type, image_square);
const ImRect image_rect(CenterImage(size, image_square));
ImGui::SetCursorPos(origin + image_rect.Min);
DrawSvgTexture(icon_texture, image_square);
}
// Pretend the image we drew was the the size passed to us
@@ -7050,6 +7053,9 @@ void FullscreenUI::DrawFallbackCover(const ImVec2& size)
const ImVec2 image_square(min_size, min_size);
GSTexture* const icon_texture = GetTextureForGameListEntryType(GameList::EntryType::PS2Disc, image_square);
const ImRect image_rect(CenterImage(size, image_square));
ImGui::SetCursorPos(origin + image_rect.Min);
DrawSvgTexture(icon_texture, image_square);
// Pretend the image we drew was the the size passed to us