From 21388f5cf8e654ed057978ba1a5e567425571e9e Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Fri, 6 Sep 2019 19:30:23 +0000 Subject: [PATCH] loader.efi: UEFI text mode background colors are only using 3 bits Need to mask background colors to pass allowed value. --- stand/efi/libefi/efi_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);