From ce8f793403d4b152425c3dbbf90c44c24a4be57a Mon Sep 17 00:00:00 2001 From: Joursoir Date: Thu, 21 Apr 2022 21:34:06 +0300 Subject: main: add color constants --- UefiMonitorTest/UefiMonitorTest.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/UefiMonitorTest/UefiMonitorTest.c b/UefiMonitorTest/UefiMonitorTest.c index 0493a5e..4933f27 100644 --- a/UefiMonitorTest/UefiMonitorTest.c +++ b/UefiMonitorTest/UefiMonitorTest.c @@ -42,6 +42,42 @@ CONST EFI_PIXEL_BITMASK mBgrPixelMasks = { 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 }; +#define UMT_COLOR_BLACK 0 +#define UMT_COLOR_WHITE 1 +#define UMT_COLOR_RED 2 +#define UMT_COLOR_LIME 3 +#define UMT_COLOR_BLUE 4 +#define UMT_COLOR_YELLOW 5 +#define UMT_COLOR_AQUA 6 +#define UMT_COLOR_MAGENTA 7 +#define UMT_COLOR_SILVER 8 +#define UMT_COLOR_GRAY 9 +#define UMT_COLOR_MAROON 10 +#define UMT_COLOR_OLIVE 11 +#define UMT_COLOR_GREEN 12 +#define UMT_COLOR_PURPLE 13 +#define UMT_COLOR_TEAL 14 +#define UMT_COLOR_NAVY 15 + +STATIC GRAPHICS_PIXEL_COLOR mColors[16] = { + { 0x00, 0x00, 0x00, 0x00 }, + { 0xFF, 0xFF, 0xFF, 0x00 }, + { 0x00, 0x00, 0xFF, 0x00 }, + { 0x00, 0xFF, 0x00, 0x00 }, + { 0xFF, 0x00, 0x00, 0x00 }, + { 0x00, 0xFF, 0xFF, 0x00 }, + { 0xFF, 0xFF, 0x00, 0x00 }, + { 0xFF, 0x00, 0xFF, 0x00 }, + { 0xC0, 0xC0, 0xC0, 0x00 }, + { 0x80, 0x80, 0x80, 0x00 }, + { 0x00, 0x00, 0x80, 0x00 }, + { 0x00, 0x80, 0x80, 0x00 }, + { 0x00, 0x80, 0x00, 0x00 }, + { 0x80, 0x00, 0x80, 0x00 }, + { 0x80, 0x80, 0x00, 0x00 }, + { 0x80, 0x00, 0x00, 0x00 } +}; + STATIC VOID ParseGraphicsPixelFormat ( -- cgit v1.2.3-18-g5258