From 81a8873d593e5a197e1bdaf7e9650aa07afad852 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sun, 22 Nov 2020 17:11:13 +0000 Subject: [PATCH] Fix Banshee/V3 cursor vertical clipping. --- src/vid_voodoo_banshee.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vid_voodoo_banshee.c b/src/vid_voodoo_banshee.c index 5915c27..abe269e 100644 --- a/src/vid_voodoo_banshee.c +++ b/src/vid_voodoo_banshee.c @@ -616,7 +616,7 @@ static void banshee_ext_outl(uint16_t addr, uint32_t val, void *p) case Video_hwCurPatAddr: banshee->hwCurPatAddr = val; - svga->hwcursor.addr = val & 0xfffff0; + svga->hwcursor.addr = (val & 0xfffff0) + (svga->hwcursor.yoff * 16); break; case Video_hwCurLoc: banshee->hwCurLoc = val; @@ -629,6 +629,7 @@ static void banshee_ext_outl(uint16_t addr, uint32_t val, void *p) } else svga->hwcursor.yoff = 0; + svga->hwcursor.addr = (banshee->hwCurPatAddr & 0xfffff0) + (svga->hwcursor.yoff * 16); svga->hwcursor.xsize = 64; svga->hwcursor.ysize = 64; // pclog("hwCurLoc %08x %i\n", val, svga->hwcursor.y);