From 77a03498c1c097bb35b19582285feac99e1ccd8e Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 28 Apr 2024 20:05:46 +1000 Subject: [PATCH] GS: Round coordinates in PrimitiveCoversWithoutGaps() --- pcsx2/GS/GSState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/GSState.cpp b/pcsx2/GS/GSState.cpp index d1209db672..e45e059e38 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -3034,7 +3034,7 @@ bool GSState::PrimitiveCoversWithoutGaps() const int first_dpX = v[1].XYZ.X - v[0].XYZ.X; // Horizontal Match. - if ((first_dpX >> 4) == m_r_no_scissor.z) + if (((first_dpX + 8) >> 4) == m_r_no_scissor.z) { // Borrowed from MergeSprite() modified to calculate heights. for (u32 i = 2; i < m_vertex.next; i += 2) @@ -3053,7 +3053,7 @@ bool GSState::PrimitiveCoversWithoutGaps() } // Vertical Match. - if ((first_dpY >> 4) == m_r_no_scissor.w) + if (((first_dpY + 8) >> 4) == m_r_no_scissor.w) { // Borrowed from MergeSprite(). const int offset_X = m_context->XYOFFSET.OFX;