aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-04-21 21:34:06 +0300
committerJoursoir <chat@joursoir.net>2022-04-21 21:34:06 +0300
commitce8f793403d4b152425c3dbbf90c44c24a4be57a (patch)
tree67d722ff8006247abcd3ee5152aef0dc91dfdd39
parent7a6015d9dfd115769eb2a1156ad3090e67f06215 (diff)
downloadumt-ce8f793403d4b152425c3dbbf90c44c24a4be57a.tar.gz
umt-ce8f793403d4b152425c3dbbf90c44c24a4be57a.tar.bz2
umt-ce8f793403d4b152425c3dbbf90c44c24a4be57a.zip
main: add color constants
-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 (