From 1436aea4d5707e672672a11bda72be2c63c936c3 Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Sun, 5 Dec 2021 14:54:02 -0800 Subject: MdeModulePkg: Apply uncrustify changes REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael D Kinney Signed-off-by: Michael Kubacki Reviewed-by: Liming Gao --- .../DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.c') diff --git a/MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.c b/MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.c index 960a4165fc..4823a24d0d 100644 --- a/MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.c +++ b/MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.c @@ -86,15 +86,19 @@ DisplayUpdateProgress ( if (Color->Pixel.Blue >= 0x40) { mProgressBarForegroundColor |= EFI_BLUE; } + if (Color->Pixel.Green >= 0x40) { mProgressBarForegroundColor |= EFI_GREEN; } + if (Color->Pixel.Red >= 0x40) { mProgressBarForegroundColor |= EFI_RED; } - if (Color->Pixel.Blue >= 0xC0 || Color->Pixel.Green >= 0xC0 || Color->Pixel.Red >= 0xC0) { + + if ((Color->Pixel.Blue >= 0xC0) || (Color->Pixel.Green >= 0xC0) || (Color->Pixel.Red >= 0xC0)) { mProgressBarForegroundColor |= EFI_BRIGHT; } + if (mProgressBarForegroundColor == EFI_BLACK) { mProgressBarForegroundColor = EFI_WHITE; } @@ -147,7 +151,7 @@ DisplayUpdateProgress ( // // Print remaining portion of progress bar // - for (; Index < 50; Index++) { + for ( ; Index < 50; Index++) { Print (L"%c", BLOCKELEMENT_LIGHT_SHADE); } -- cgit v1.2.3