From d3612ff501d0dc23da75de8894d411605d59eee9 Mon Sep 17 00:00:00 2001 From: TC1995 Date: Tue, 12 May 2020 13:50:23 +0200 Subject: [PATCH] Fixed small mistake at porting from PCem. --- src/video/vid_svga.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/video/vid_svga.c b/src/video/vid_svga.c index c0f51f858..a74161de7 100644 --- a/src/video/vid_svga.c +++ b/src/video/vid_svga.c @@ -1188,11 +1188,9 @@ svga_read_common(uint32_t addr, uint8_t linear, void *p) addr <<= 2; addr &= svga->decode_mask; - if (!linear) { - if (svga->translate_address) { - latch_addr = svga->translate_address(latch_addr, p); - addr = svga->translate_address(addr, p); - } + if (svga->translate_address) { + latch_addr = svga->translate_address(latch_addr, p); + addr = svga->translate_address(addr, p); } /* standard VGA latched access */