mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-19 06:45:39 +00:00
GPU: Fix height underflow in CRTC calculations
This commit is contained in:
parent
3472e37d21
commit
c114873ed8
|
@ -557,7 +557,7 @@ void GPU::UpdateCRTCDisplayParameters()
|
|||
{
|
||||
cs.display_vram_height =
|
||||
(cs.vertical_active_end -
|
||||
std::min(vertical_display_end, std::max(vertical_display_start, cs.vertical_active_start)))
|
||||
std::min(cs.vertical_active_end, std::max(vertical_display_start, cs.vertical_active_start)))
|
||||
<< height_shift;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue