Bochs VBE: Simplify horizontal blank end calculation.

This commit is contained in:
OBattler
2025-11-08 03:30:57 +01:00
parent 158718836e
commit e0aa4c74d4

View File

@@ -319,7 +319,7 @@ bochs_vbe_recalctimings(svga_t* svga)
svga->vtotal = mode.vtotal;
svga->htotal = mode.htotal;
svga->hblankstart = mode.hdisplay;
svga->hblankend = mode.hdisplay + (mode.htotal - mode.hdisplay - 1);
svga->hblankend = mode.htotal - 1;
svga->vblankstart = svga->dispend; /* no vertical overscan. */
svga->rowcount = 0;
svga->hoverride = 1;