GS-HW: GetOutput loop on 2048 and restrict height.

This commit is contained in:
refractionpcsx2 2022-11-05 04:28:56 +00:00
parent e2cdcd094a
commit 2221a12950
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ GSTexture* GSRendererHW::GetOutput(int i, int& y_offset)
const int fb_width = std::min<int>(std::min<int>(GetFramebufferWidth(), DISPFB.FBW * 64) + (int)DISPFB.DBX, 2048);
const int display_height = offsets.y * ((isinterlaced() && !m_regs->SMODE2.FFMD) ? 2 : 1);
const int display_offset = GetResolutionOffset(i).y;
int fb_height = std::min<int>(std::min<int>(GetFramebufferHeight(), display_height) + (int)DISPFB.DBY, 2048);
int fb_height = (std::min<int>(GetFramebufferHeight(), display_height) + (int)DISPFB.DBY) % 2048;
// If there is a negative vertical offset on the picture, we need to read more.
if (display_offset < 0)
{