aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/lib/sys/vesa/drawtxt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/sys/vesa/drawtxt.c b/com32/lib/sys/vesa/drawtxt.c
index c4e32c5c..b121e679 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: