diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c b/IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c index 28853d23dd..61fc49034f 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c @@ -51,13 +51,9 @@ PlatformBdsShowProgress ( UINT32 ColorDepth; UINT32 RefreshRate; EFI_GRAPHICS_OUTPUT_BLT_PIXEL Color; - UINTN BlockHeight; - UINTN BlockWidth; UINTN BlockNum; - UINTN PosX; UINTN PosY; - UINTN Index; - + if (Progress > 100) { return EFI_INVALID_PARAMETER; } @@ -101,12 +97,8 @@ PlatformBdsShowProgress ( return EFI_UNSUPPORTED; } - BlockWidth = SizeOfX / 100; - BlockHeight = SizeOfY / 50; - BlockNum = Progress; - PosX = 0; PosY = SizeOfY * 48 / 50; if (BlockNum == 0) { @@ -145,41 +137,6 @@ PlatformBdsShowProgress ( return EFI_UNSUPPORTED; } } - // - // Show progress by drawing blocks - // - for (Index = PreviousValue; Index < BlockNum; Index++) { - PosX = Index * BlockWidth; - if (GraphicsOutput != NULL) { - Status = GraphicsOutput->Blt ( - GraphicsOutput, - &ProgressColor, - EfiBltVideoFill, - 0, - 0, - PosX, - PosY, - BlockWidth - 1, - BlockHeight, - (BlockWidth) * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL) - ); - } else if (FeaturePcdGet (PcdUgaConsumeSupport)) { - Status = UgaDraw->Blt ( - UgaDraw, - (EFI_UGA_PIXEL *) &ProgressColor, - EfiUgaVideoFill, - 0, - 0, - PosX, - PosY, - BlockWidth - 1, - BlockHeight, - (BlockWidth) * sizeof (EFI_UGA_PIXEL) - ); - } else { - return EFI_UNSUPPORTED; - } - } PrintXY ( (SizeOfX - StrLen (Title) * EFI_GLYPH_WIDTH) / 2, @@ -287,7 +244,6 @@ BdsMemoryTest ( TmpStr = GetStringById (STRING_TOKEN (STR_ESC_TO_SKIP_MEM_TEST)); if (TmpStr != NULL) { - PrintXY (10, 10, NULL, NULL, TmpStr); FreePool (TmpStr); } } else { @@ -304,7 +260,6 @@ BdsMemoryTest ( if (ErrorOut && (Status == EFI_DEVICE_ERROR)) { TmpStr = GetStringById (STRING_TOKEN (STR_SYSTEM_MEM_ERROR)); if (TmpStr != NULL) { - PrintXY (10, 10, NULL, NULL, TmpStr); FreePool (TmpStr); } @@ -330,7 +285,6 @@ BdsMemoryTest ( TmpStr, sizeof (StrPercent) / sizeof (CHAR16) - StrLen (StrPercent) - 1 ); - PrintXY (10, 10, NULL, NULL, StrPercent); FreePool (TmpStr); } @@ -370,8 +324,6 @@ BdsMemoryTest ( ); FreePool (TmpStr); } - - PrintXY (10, 10, NULL, NULL, L"100"); } Status = GenMemoryTest->Finished (GenMemoryTest); goto Done; @@ -403,7 +355,6 @@ Done: FreePool (TmpStr); } - PrintXY (10, 10, NULL, NULL, StrTotalMemory); PlatformBdsShowProgress ( Foreground, Background,