GS: Account for frame offset in output circuit

This commit is contained in:
refractionpcsx2 2022-05-01 12:44:34 +01:00
parent d45f34ee8b
commit a28098c4f8
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ GSTexture* GSRendererHW::GetOutput(int i, int& y_offset)
const int videomode = static_cast<int>(GetVideoMode()) - 1;
int display_height = VideoModeOffsets[videomode].y * ((isinterlaced() && !m_regs->SMODE2.FFMD) ? 2 : 1);
int fb_height = std::min(GetFramebufferHeight(), display_height);
int fb_height = std::min(GetFramebufferHeight(), display_height) + DISPFB.DBY;
// TRACE(_T("[%d] GetOutput %d %05x (%d)\n"), (int)m_perfmon.GetFrame(), i, (int)TEX0.TBP0, (int)TEX0.PSM);
GSTexture* t = NULL;

View File

@ -144,7 +144,7 @@ GSTexture* GSRendererSW::GetOutput(int i, int& y_offset)
const int videomode = static_cast<int>(GetVideoMode()) - 1;
int display_height = VideoModeOffsets[videomode].y * ((isinterlaced() && !m_regs->SMODE2.FFMD) ? 2 : 1);
int h = std::min(GetFramebufferHeight(), display_height);
int h = std::min(GetFramebufferHeight(), display_height) + DISPFB.DBY;
// TODO: round up bottom