From e8835770692b7d0a5f6248402ca63367cade2ed4 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 14 Jan 2020 21:01:46 +0100 Subject: [PATCH] Removed a useless unsigned compare from the ATi 28800 code. --- src/video/vid_ati28800.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video/vid_ati28800.c b/src/video/vid_ati28800.c index a0c883c33..28081efe9 100644 --- a/src/video/vid_ati28800.c +++ b/src/video/vid_ati28800.c @@ -190,8 +190,7 @@ ati28800_out(uint16_t addr, uint8_t val, void *p) return; if ((ati28800->regs[0xb4] & 0x20) && ((svga->crtc[0x08] & 0x7f) && (svga->crtc[0x14] & 0x1f))) return; - if ((ati28800->regs[0xb4] & 0x40) && (((svga->crtcreg >= 0x00) && (svga->crtcreg <= 0x06)) && - (svga->crtc[0x07] & 0x10) != 0x10)) + if ((ati28800->regs[0xb4] & 0x40) && ((svga->crtcreg <= 0x06) && (svga->crtc[0x07] & 0x10) != 0x10)) return; old = svga->crtc[svga->crtcreg];