Skip to content

Commit

Permalink
Merge pull request #1889 from tyama501/pc98_attr2
Browse files Browse the repository at this point in the history
[console] No display only when fg = 0 and bg = 0 for PC-98
  • Loading branch information
ghaerr authored Apr 20, 2024
2 parents c20a8ef + a95bd7d commit 9b90381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elks/arch/i86/drivers/char/console-direct-pc98.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static word_t conv_pcattr(word_t attr)
fg_grb = grb[attr & 0x7];
bg_grb = grb[(attr & 0x70) >> 4];

if (fg_grb == bg_grb)
if ((fg_grb == 0) && (bg_grb == 0))
attr98 = fg_grb; /* No display */
else if (bg_grb != 0)
attr98 = 0x05 | bg_grb; /* Use bg color and invert */
Expand Down

0 comments on commit 9b90381

Please sign in to comment.