loader.efi: UEFI text mode background colors are only using 3 bits

Need to mask background colors to pass allowed value.
This commit is contained in:
Toomas Soome 2019-09-06 19:30:23 +00:00
parent f18ca7f311
commit 21388f5cf8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351959

View File

@ -159,7 +159,7 @@ efi_text_printchar(const teken_pos_t *p)
}
attr = EFI_TEXT_ATTR(teken_color_to_efi_color[fg],
teken_color_to_efi_color[bg]);
teken_color_to_efi_color[bg] & 0x7);
conout->SetCursorPosition(conout, p->tp_col, p->tp_row);