From 6a1099155b40b4235153103cb988a1f5f6268302 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 3 Aug 2016 00:52:50 +0200 Subject: [PATCH] Fixed two more compile-breaking mistakes in the ATI 28800 code. --- src/vid_ati28800.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vid_ati28800.c b/src/vid_ati28800.c index 4fac68870..1c8326bc0 100644 --- a/src/vid_ati28800.c +++ b/src/vid_ati28800.c @@ -23,7 +23,7 @@ typedef struct ati28800_t int index; } ati28800_t; -void ati28800_svga_recalctimings(svga_t *svga); +void ati28800_svga_recalctimings(ati28800_t *ati28800); void ati28800_out(uint16_t addr, uint8_t val, void *p) { @@ -187,7 +187,7 @@ void ati28800_svga_recalctimings(ati28800_t *ati28800) svga->hdisp++; svga->htotal = svga->crtc[0]; - if ((ati28800->regs[0xad] & 8) && (gfxcard == GFX_VGAWONDERXL24)) svga->htotal |= (ati28800->regs[0xad] & 1) ? 0x100 | 0; + if ((ati28800->regs[0xad] & 8) && (gfxcard == GFX_VGAWONDERXL24)) svga->htotal |= (ati28800->regs[0xad] & 1) ? 0x100 : 0; svga->htotal += 6; /*+6 is required for Tyrian*/ svga->rowoffset = svga->crtc[0x13];