/* MenuTextColor=White */
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
- L"MenuTextColor", L"Gray");
+ L"MenuTextColor", L"Default");
/* MenuColor=Blue */
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
/* TextColor=Yellow */
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
- L"TextColor", L"Gray");
+ L"TextColor", L"Default");
/* SelectedTextColor=Black */
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
L"SelectedTextColor", L"Black");
- /* SelectedColor=Gray */
+ /* SelectedColor=Default */
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
- L"SelectedColor", L"Gray");
+ L"SelectedColor", L"Default");
/* ShowTime=Yes */
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
;
; Text colors can be any one of the background colors and any of the following:
; DarkGray, LightBlue, LightGreen, LightCyan, LightRed, LightMagenta,
-; Yellow, White.
+; Yellow, White, Default.
+;
+; Default color is the one that is being used by BIOS firmware by default.
+; On PC/AT-compatible machines it's Gray, and on NEC PC-98 series it's White.
; [OS-General] Section Commands:
;
} SVGA_MODE_INFORMATION, *PSVGA_MODE_INFORMATION;
#include <poppack.h>
+UCHAR MachDefaultTextColor = COLOR_GRAY;
+
static USHORT BiosVideoMode; /* Current video mode as known by BIOS */
static ULONG ScreenWidth = 80; /* Screen Width in characters */
static ULONG ScreenHeight = 25; /* Screen Height in characters */
#define TAG_TAG_TUI_PALETTE 'PiuT'
PVOID TextVideoBuffer = NULL;
+extern UCHAR MachDefaultTextColor;
/*
* TuiPrintf()
};
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)