Merge pull request #5759 from Cacodemon345/svga-overscan-crash-fix

SVGA: Don't draw blank screens out of bounds
This commit is contained in:
Miran Grča
2025-07-07 21:02:56 +02:00
committed by GitHub

View File

@@ -58,7 +58,7 @@ svga_render_null(svga_t *svga)
void void
svga_render_blank(svga_t *svga) svga_render_blank(svga_t *svga)
{ {
if ((svga->displine + svga->y_add) < 0) if ((svga->displine + svga->y_add) < 0 || (svga->displine + svga->y_add) >= 2048)
return; return;
if (svga->firstline_draw == 2000) if (svga->firstline_draw == 2000)