Skip to content

Commit

Permalink
GS/HW: Fix incorrect resizing of Ico move target
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek authored and refractionpcsx2 committed Jan 9, 2024
1 parent 01842a3 commit c469b17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pcsx2/GS/Renderers/HW/GSHwHack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1416,8 +1416,11 @@ bool GSHwHack::MV_Ico(GSRendererHW& r)

if (dst->GetUnscaledWidth() < static_cast<int>(RWIDTH) || dst->GetUnscaledHeight() < static_cast<int>(RHEIGHT))
{
if (!dst->ResizeTexture(dst->GetUnscaledWidth(), static_cast<int>(RWIDTH), std::max(dst->GetUnscaledHeight(), static_cast<int>(RHEIGHT))))
if (!dst->ResizeTexture(std::max(dst->GetUnscaledWidth(), static_cast<int>(RWIDTH)),
std::max(dst->GetUnscaledHeight(), static_cast<int>(RHEIGHT))))
{
return false;
}
}

const GSVector4i draw_rc = GSVector4i(0, 0, RWIDTH, RHEIGHT).rintersect(dst->GetUnscaledRect());
Expand Down

0 comments on commit c469b17

Please sign in to comment.