From 4b683eb2cd47e91656c60e79dfb53614324e6b89 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Sat, 23 Dec 2023 22:11:00 +0100 Subject: [PATCH] Prevent inverted colors --- xtldr2/textui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xtldr2/textui.c b/xtldr2/textui.c index f08c2e8..51dfd1a 100644 --- a/xtldr2/textui.c +++ b/xtldr2/textui.c @@ -1166,6 +1166,7 @@ BlDisplayBootMenu() if(TimeOut > 0) { /* Update a message and decrease timeout value */ + BlSetConsoleAttributes(Handle.DialogColor | Handle.TextColor); BlClearConsoleLine(Handle.PosY + Handle.Height + 4); BlSetCursorPosition(4, Handle.PosY + Handle.Height + 4); BlConsolePrint(L"The highlighted position will be booted automatically in %ld seconds.", TimeOut); @@ -1174,6 +1175,7 @@ BlDisplayBootMenu() else if(TimeOut == 0) { /* Time out expired, update a message */ + BlSetConsoleAttributes(Handle.DialogColor | Handle.TextColor); BlClearConsoleLine(Handle.PosY + Handle.Height + 4); BlSetCursorPosition(4, Handle.PosY + Handle.Height + 4); BlConsolePrint(L"Booting '%S' now...", MenuEntries[HighligtedEntryId].EntryName);