[Bug 261751] vt mouse pointer background display bug

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 02 Mar 2022 13:44:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261751

--- Comment #5 from Ed Maste <emaste@freebsd.org> ---
Looking further I think this may be fallout from
5e251aec86367747ac1d7086dcbb05f18ef0f167.

This untested patch may fix it:

diff --git a/sys/dev/vt/hw/vga/vt_vga.c b/sys/dev/vt/hw/vga/vt_vga.c
index 563867399e53..0cb5f356a70a 100644
--- a/sys/dev/vt/hw/vga/vt_vga.c
+++ b/sys/dev/vt/hw/vga/vt_vga.c
@@ -582,7 +582,7 @@ vga_bitblt_pixels_block_ncolors(struct vt_device *vd, const
uint8_t *masks,
                                /* The pixel "j" uses color "color". */
                                for (plan = 0; plan < 4; ++plan)
                                        plans[i * 4 + plan] |=
-                                           ((color >> plan) & 0x1) << (7 - j);
+                                           ((cons_to_vga_colors[color] >>
plan) & 0x1) << (7 - j);
                        }
                }
        }

-- 
You are receiving this mail because:
You are the assignee for the bug.