diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2019-09-06 19:30:23 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2019-09-06 19:30:23 +0000 |
commit | 21388f5cf8e654ed057978ba1a5e567425571e9e (patch) | |
tree | d5258d468f98c385673ccd1e84b46f9ed9c845ef /stand/efi/libefi | |
parent | f18ca7f3115a1f959fedbcf1d87bb369b299bd50 (diff) | |
download | src-21388f5cf8e654ed057978ba1a5e567425571e9e.tar.gz src-21388f5cf8e654ed057978ba1a5e567425571e9e.zip |
loader.efi: UEFI text mode background colors are only using 3 bits
Need to mask background colors to pass allowed value.
Notes
Notes:
svn path=/head/; revision=351959
Diffstat (limited to 'stand/efi/libefi')
-rw-r--r-- | stand/efi/libefi/efi_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/efi/libefi/efi_console.c b/stand/efi/libefi/efi_console.c index 35f68bcaa310..6c8522111c80 100644 --- a/stand/efi/libefi/efi_console.c +++ b/stand/efi/libefi/efi_console.c @@ -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); |