[FREELDR] Add variable for default text color
[reactos.git] / boot / freeldr / freeldr / ui / tui.c
index d8fa402..b932795 100644 (file)
@@ -23,6 +23,7 @@
 #define TAG_TAG_TUI_PALETTE 'PiuT'
 
 PVOID TextVideoBuffer = NULL;
+extern UCHAR MachDefaultTextColor;
 
 /*
  * TuiPrintf()
@@ -724,6 +725,9 @@ UCHAR TuiTextToColor(PCSTR ColorText)
     };
     ULONG i;
 
+    if (_stricmp(ColorText, "Default") == 0)
+        return MachDefaultTextColor;
+
     for (i = 0; i < sizeof(Colors)/sizeof(Colors[0]); ++i)
     {
         if (_stricmp(ColorText, Colors[i].ColorName) == 0)