Skip to content

Commit

Permalink
GS: Fix scanmask interlace offsetting on even numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Jul 11, 2022
1 parent 446b0c2 commit 2f6df2f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pcsx2/GS/Renderers/Common/GSRenderer.cpp
Expand Up @@ -211,10 +211,13 @@ bool GSRenderer::Merge(int field)
// When the displays are offset by 1 we need to adjust for upscale to handle it (reduces bounce in MGS2 when upscaling)
interlace_offset += (tex[i]->GetScale().y - 1.0f) / 2;

if (!ignore_offset)
off.y &= ~1;
if (interlace_offset >= 1.0f)
{
if (!ignore_offset)
off.y -= 1;

display_diff.y &= ~1;
display_diff.y -= 1;
}
}

// Start of Anti-Blur code.
Expand Down

0 comments on commit 2f6df2f

Please sign in to comment.