From: Toni Wilen Date: Sat, 25 Nov 2023 13:48:07 +0000 (+0200) Subject: Fix double scanned custom chipset cursor as a windows mouse cursor X-Git-Tag: 5.1.0~42 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=d52ad041aa7aeb039fd2fe789e16be355716ef57;p=francis%2Fwinuae.git Fix double scanned custom chipset cursor as a windows mouse cursor --- diff --git a/custom.cpp b/custom.cpp index 57b40812..c29addc0 100644 --- a/custom.cpp +++ b/custom.cpp @@ -11291,13 +11291,17 @@ static void cursorsprite(void) if (!dmaen(DMA_SPRITE) || first_planes_vpos == 0) { return; } - sprite_0 = spr[0].pt; - sprite_0_height = spr[0].vstop - spr[0].vstart; + struct sprite *s = &spr[0]; + sprite_0 = s->pt; + sprite_0_height = s->vstop - s->vstart; sprite_0_colors[0] = 0; sprite_0_doubled = 0; if (sprres == 0) { sprite_0_doubled = 1; } + if (spr[0].dblscan) { + sprite_0_height /= 2; + } if (aga_mode) { int sbasecol = ((bplcon4 >> 4) & 15) << 4; sprite_0_colors[1] = current_colors.color_regs_aga[sbasecol + 1];