EGA, MDA, and Sigma: Fix timings.

This commit is contained in:
OBattler
2025-08-14 13:13:32 +02:00
parent 3a8fa196a8
commit 2f7de1d23d
3 changed files with 10 additions and 6 deletions

View File

@@ -130,8 +130,8 @@ mda_recalctimings(mda_t *mda)
double _dispontime;
double _dispofftime;
double disptime;
disptime = mda->crtc[MDA_CRTC_HTOTAL] + 1;
_dispontime = mda->crtc[MDA_CRTC_HDISP];
disptime = (mda->crtc[MDA_CRTC_HTOTAL] + 1) << 1;
_dispontime = (mda->crtc[MDA_CRTC_HDISP]) << 1;
_dispofftime = disptime - _dispontime;
_dispontime *= MDACONST;
_dispofftime *= MDACONST;