Fixed off by one errors in (S)VGA horizontal blanking start calculation.

This commit is contained in:
OBattler
2024-02-18 17:54:14 +01:00
parent 0b5bf60aaf
commit 4c3cceec69
14 changed files with 28 additions and 34 deletions

View File

@@ -914,7 +914,7 @@ ibm8514_accel_out(uint16_t port, uint32_t val, svga_t *svga, int len)
if (!(port & 1)) {
if (((dev->disp_cntl & 0x60) == 0x20) || (((dev->disp_cntl & 0x60) == 0x40) && !(dev->accel.advfunc_cntl & 0x04))) {
dev->hsync_start = val;
dev->hblankstart = (dev->hsync_start & 0x07) + 1;
dev->hblankstart = (dev->hsync_start & 0x07);
}
}
ibm8514_log("IBM 8514/A: H_SYNC_STRT write 0AE8 = %d\n", val + 1);