GS/HW: Resize rect from half point in Double Half Clear

This commit is contained in:
refractionpcsx2 2023-09-24 00:32:38 +01:00
parent 0f8dceed89
commit dab9e7aaa2
1 changed files with 6 additions and 2 deletions

View File

@ -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));