mirror of https://github.com/PCSX2/pcsx2.git
GS: Fix undefined behaviour bug in PCRTC
This commit is contained in:
parent
fa70f0e764
commit
9ca9db8770
|
@ -516,7 +516,8 @@ public:
|
|||
}
|
||||
|
||||
// Cap the framebuffer read to the maximum display height, otherwise the hardware renderer gets messy.
|
||||
combined_rect.w = std::min(combined_rect.w, combined_rect.y + (max_height * PCRTCDisplays[display].magnification.y));
|
||||
int min_mag = std::min(PCRTCDisplays[0].magnification.y, PCRTCDisplays[1].magnification.y);
|
||||
combined_rect.w = std::min(combined_rect.w, combined_rect.y + (max_height / min_mag));
|
||||
return GSVector2i(combined_rect.z, combined_rect.w);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue