From 6c831a91090ecfcb85023a6f7a33dd1f88379541 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 5 Jan 2024 19:36:29 +0200 Subject: [PATCH] NCR SVGA blitter fix --- pcem/vid_ncr.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pcem/vid_ncr.cpp b/pcem/vid_ncr.cpp index 0b0e8ec8..61d569a4 100644 --- a/pcem/vid_ncr.cpp +++ b/pcem/vid_ncr.cpp @@ -557,12 +557,11 @@ static bool blitter_proc(ncr_t *ncr) uint8_t src = 0; if (!(ncr->blt_control & (1 << 15))) { // waiting for fifo write? - int shift = ncr->blt_expand_offset & 7; - if (ncr->blt_fifo_size - shift < 8) { + if (ncr->blt_fifo_size < 8) { ncr->blt_fifo_write = 1; return false; } - src = (ncr->blt_fifo_data >> shift) & 0xff; + src = (ncr->blt_fifo_data) & 0xff; ncr->blt_fifo_data >>= 8; ncr->blt_fifo_size -= 8; ncr->blt_fifo_write = 0; -- 2.47.3