From c469b17350319d37e9950597919d248d2f4605aa Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 9 Jan 2024 22:37:16 +1000 Subject: [PATCH] GS/HW: Fix incorrect resizing of Ico move target --- pcsx2/GS/Renderers/HW/GSHwHack.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/HW/GSHwHack.cpp b/pcsx2/GS/Renderers/HW/GSHwHack.cpp index ea53c8af40..13af2a95bc 100644 --- a/pcsx2/GS/Renderers/HW/GSHwHack.cpp +++ b/pcsx2/GS/Renderers/HW/GSHwHack.cpp @@ -1416,8 +1416,11 @@ bool GSHwHack::MV_Ico(GSRendererHW& r) if (dst->GetUnscaledWidth() < static_cast(RWIDTH) || dst->GetUnscaledHeight() < static_cast(RHEIGHT)) { - if (!dst->ResizeTexture(dst->GetUnscaledWidth(), static_cast(RWIDTH), std::max(dst->GetUnscaledHeight(), static_cast(RHEIGHT)))) + if (!dst->ResizeTexture(std::max(dst->GetUnscaledWidth(), static_cast(RWIDTH)), + std::max(dst->GetUnscaledHeight(), static_cast(RHEIGHT)))) + { return false; + } } const GSVector4i draw_rc = GSVector4i(0, 0, RWIDTH, RHEIGHT).rintersect(dst->GetUnscaledRect());