aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--UefiMonitorTest/UefiMonitorTest.c36
1 files changed, 36 insertions, 0 deletions
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 (