Skip to content

Commit

Permalink
GS/HW: Resize rect from half point in Double Half Clear
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Sep 24, 2023
1 parent 0f8dcee commit dab9e7a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pcsx2/GS/Renderers/HW/GSRendererHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5823,12 +5823,16 @@ bool GSRendererHW::DetectDoubleHalfClear(bool& no_rt, bool& no_ds)
// Double the clear rect.
if (horizontal)
{
const int width = m_r.width();
m_cached_ctx.FRAME.FBW *= 2;
m_r.z += m_r.x + m_r.width();
m_r.z = (w_pages * frame_psm.pgs.x);
m_r.z += m_r.x + width;
}
else
{
m_r.w += m_r.y + m_r.height();
const int height = m_r.height();
m_r.w = ((half - base) / m_cached_ctx.FRAME.FBW) * frame_psm.pgs.y;
m_r.w += m_r.y + height;
}
ReplaceVerticesWithSprite(m_r, GSVector2i(1, 1));

Expand Down

0 comments on commit dab9e7a

Please sign in to comment.