From ea9348d104fdecf4bc65988179ef2381673c06f3 Mon Sep 17 00:00:00 2001 From: TC1995 Date: Thu, 14 Dec 2023 21:56:17 +0100 Subject: [PATCH 1/2] Actually initialize the cursor color regs of the ATI Mach32 card. --- src/video/vid_ati_mach8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/vid_ati_mach8.c b/src/video/vid_ati_mach8.c index 9b7c27649..872d41666 100644 --- a/src/video/vid_ati_mach8.c +++ b/src/video/vid_ati_mach8.c @@ -5195,6 +5195,7 @@ mach32_hwcursor_draw(svga_t *svga, int displine) mach_log("BPP=%d.\n", dev->accel_bpp); switch (dev->accel_bpp) { + default: case 8: color0 = dev->pallook[mach->cursor_col_0]; color1 = dev->pallook[mach->cursor_col_1]; @@ -5212,7 +5213,6 @@ mach32_hwcursor_draw(svga_t *svga, int displine) color0 = ((mach->ext_cur_col_0_r << 16) | (mach->ext_cur_col_0_g << 8) | mach->cursor_col_0); color1 = ((mach->ext_cur_col_1_r << 16) | (mach->ext_cur_col_1_g << 8) | mach->cursor_col_1); break; - default: break; } From 3c654af28675dae4cbc954e4df9311735722d45e Mon Sep 17 00:00:00 2001 From: TC1995 Date: Thu, 14 Dec 2023 21:57:48 +0100 Subject: [PATCH 2/2] dang it... --- src/video/vid_ati_mach8.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/video/vid_ati_mach8.c b/src/video/vid_ati_mach8.c index 872d41666..89abde977 100644 --- a/src/video/vid_ati_mach8.c +++ b/src/video/vid_ati_mach8.c @@ -5213,7 +5213,6 @@ mach32_hwcursor_draw(svga_t *svga, int displine) color0 = ((mach->ext_cur_col_0_r << 16) | (mach->ext_cur_col_0_g << 8) | mach->cursor_col_0); color1 = ((mach->ext_cur_col_1_r << 16) | (mach->ext_cur_col_1_g << 8) | mach->cursor_col_1); break; - break; } if (dev->interlace && dev->hwcursor_oddeven)