FullscreenUI: Fix trophy placement on non-square covers

This commit is contained in:
Stenzek 2025-06-14 01:22:21 +10:00
parent 06da45b3f2
commit c06da318d6
No known key found for this signature in database

View File

@ -8309,7 +8309,7 @@ void FullscreenUI::DrawGameGrid(const ImVec2& heading_size)
{ {
const ImVec2 trophy_size = const ImVec2 trophy_size =
ImVec2(static_cast<float>(cover_trophy->GetWidth()), static_cast<float>(cover_trophy->GetHeight())); ImVec2(static_cast<float>(cover_trophy->GetWidth()), static_cast<float>(cover_trophy->GetHeight()));
ImGui::GetWindowDrawList()->AddImage(cover_trophy, image_rect.Max - trophy_size, image_rect.Max, ImGui::GetWindowDrawList()->AddImage(cover_trophy, bb.Min + image_size - trophy_size, bb.Min + image_size,
ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), IM_COL32(255, 255, 255, 255)); ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), IM_COL32(255, 255, 255, 255));
} }