diff options
author | Joursoir <chat@joursoir.net> | 2022-05-10 01:30:31 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-05-10 01:30:31 +0300 |
commit | 4234e13c3542ca769c21f6cde9207550bda0d8dd (patch) | |
tree | bf0f111cd1674719fd282bc09607c46e741275a4 /UefiMonitorTest/tests | |
parent | 73fb0ea5dade3b2a2377f3b2309b07727c416c8f (diff) | |
download | umt-4234e13c3542ca769c21f6cde9207550bda0d8dd.tar.gz umt-4234e13c3542ca769c21f6cde9207550bda0d8dd.tar.bz2 umt-4234e13c3542ca769c21f6cde9207550bda0d8dd.zip |
graphics: store color names
Diffstat (limited to 'UefiMonitorTest/tests')
-rw-r--r-- | UefiMonitorTest/tests/SolidColors.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/UefiMonitorTest/tests/SolidColors.c b/UefiMonitorTest/tests/SolidColors.c index 18fe922..b0ed993 100644 --- a/UefiMonitorTest/tests/SolidColors.c +++ b/UefiMonitorTest/tests/SolidColors.c @@ -13,7 +13,7 @@ SolidColorsTestInit ( { GRAPHICS_CONTEXT *Graphics = Ctx->Graphics; - PutRect (Graphics, 0, 0, Graphics->Width, Graphics->Height, &gUmtColors[CurrentColor]); + PutRect (Graphics, 0, 0, Graphics->Width, Graphics->Height, &gUmtColors[CurrentColor].Color); if (Ctx->ShowTip) SolidColorsTestTip (Ctx); } @@ -41,7 +41,7 @@ SolidColorsTestTip ( if (Ctx->ShowTip == FALSE) { // Restore - PutRect (Graphics, 15, Graphics->Height - 15 - 104, 470, Graphics->Height - 15, &gUmtColors[CurrentColor]); + PutRect (Graphics, 15, Graphics->Height - 15 - 104, 470, Graphics->Height - 15, &gUmtColors[CurrentColor].Color); return; } @@ -76,9 +76,9 @@ SolidColorsTestTip ( Msg = HiiGetString (gUmtHiiHandle, MsgToken, NULL); DrawRectWithBorder (Graphics, 15, Graphics->Height - 15 - 104, 470, Graphics->Height - 15, - 3, &gUmtColors[UMT_COLOR_WHITE], &gUmtColors[UMT_COLOR_NAVY]); - DrawStringF (Graphics, 25, Graphics->Height - 15 - 94, &gUmtColors[UMT_COLOR_NAVY], Title); - DrawStringF (Graphics, 25, Graphics->Height - 15 - 74, &gUmtColors[UMT_COLOR_BLACK], Msg); + 3, &gUmtColors[UMT_COLOR_WHITE].Color, &gUmtColors[UMT_COLOR_NAVY].Color); + DrawStringF (Graphics, 25, Graphics->Height - 15 - 94, &gUmtColors[UMT_COLOR_NAVY].Color, Title); + DrawStringF (Graphics, 25, Graphics->Height - 15 - 74, &gUmtColors[UMT_COLOR_BLACK].Color, Msg); FreePool (Title); FreePool (Msg); |