From c0585deef21ce0886324895a41921b9c260dbe41 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Mon, 30 Dec 2024 17:09:19 +0100 Subject: [PATCH] Voodoo3: Fixed 16-bit mem write to LFB for (offset & 2) != 0. This should fix issue #438. --- bochs/iodev/display/banshee.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/bochs/iodev/display/banshee.cc b/bochs/iodev/display/banshee.cc index f1a883baa..b243bdfc3 100644 --- a/bochs/iodev/display/banshee.cc +++ b/bochs/iodev/display/banshee.cc @@ -1536,6 +1536,7 @@ void bx_banshee_c::mem_write(bx_phy_address addr, unsigned len, void *data) mask = 0x0000ffff; } else { mask = 0xffff0000; + value <<= 16; } } lfb_w((offset & v->fbi.mask) >> 2, value, mask);