Apply it to ATi 28800 and Mach 8 as well.

This commit is contained in:
OBattler
2024-01-10 23:30:48 +01:00
parent 0090000f85
commit d00dafcf16
2 changed files with 10 additions and 0 deletions

View File

@@ -136,6 +136,10 @@ ati28800_out(uint16_t addr, uint8_t val, void *priv)
if ((old ^ val) & 0x80)
svga_recalctimings(svga);
break;
case 0xad:
if ((old ^ val) & 0x0c)
svga_recalctimings(svga);
break;
case 0xb0:
if ((old ^ val) & 0x60)
svga_recalctimings(svga);
@@ -492,6 +496,9 @@ ati28800_recalctimings(svga_t *svga)
}
}
}
if (ati28800->regs[0xad] & 0x08)
svga->hblankstart = ((ati28800->regs[0x0d] >> 2) << 8) + svga->crtc[4] + 1;
}
static void

View File

@@ -2841,6 +2841,9 @@ mach_recalctimings(svga_t *svga)
}
}
}
if (ati28800->regs[0xad] & 0x08)
svga->hblankstart = ((ati28800->regs[0x0d] >> 2) << 8) + svga->crtc[4] + 1;
}
static void