From 32609c088fc52285bb567a0b57445dc2e1e0a6e2 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 30 Aug 2006 16:34:07 -0700 Subject: [PATCH] Actually blend the proper colors... --- com32/lib/sys/vesa/drawtxt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com32/lib/sys/vesa/drawtxt.c b/com32/lib/sys/vesa/drawtxt.c index c4e32c5..b121e67 100644 --- a/com32/lib/sys/vesa/drawtxt.c +++ b/com32/lib/sys/vesa/drawtxt.c @@ -127,8 +127,8 @@ static void vesacon_update_characters(int row, int col, int nrows, int ncols) chxbits = chbits; chxbits &= (cptr->sha & 0x02) ? 0xff : 0x00; chxbits ^= (cptr->sha & 0x01) ? 0xff : 0x00; - fgcolor = vesacon_color_map[cptr->sha & 0x0f]; - bgcolor = vesacon_color_map[cptr->sha >> 4]; + fgcolor = vesacon_color_map[cptr->attr & 0x0f]; + bgcolor = vesacon_color_map[cptr->attr >> 4]; cptr++; break; case FONT_WIDTH-1: -- 2.7.4