GPU: Prevent potential overflow in CRTC visible area calculation

This commit is contained in:
Albert Liu
2020-12-12 00:02:24 -08:00
parent 78e42d9b4c
commit 866cbdca4b
2 changed files with 17 additions and 0 deletions

View File

@ -497,6 +497,7 @@ protected:
u16 display_vram_width;
u16 display_vram_height;
// Visible range of the screen, in GPU ticks/lines. Clamped to lie within the active video region.
u16 horizontal_visible_start;
u16 horizontal_visible_end;
u16 vertical_visible_start;