From 5547062df502d26985e47b870107c7f9f6838afb Mon Sep 17 00:00:00 2001 From: gdong1 Date: Tue, 24 Mar 2009 06:53:26 +0000 Subject: Fixed two K8 report issue git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7929 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'IntelFrameworkPkg/Library/FrameworkUefiLib') diff --git a/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c b/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c index dbb648da50..20ad068962 100644 --- a/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c +++ b/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c @@ -393,7 +393,7 @@ InternalPrintGraphic ( if (GraphicsOutput != NULL) { HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution; VerticalResolution = GraphicsOutput->Mode->Info->VerticalResolution; - } else if (FeaturePcdGet (PcdUgaConsumeSupport)) { + } else if (UgaDraw != NULL) { UgaDraw->GetMode (UgaDraw, &HorizontalResolution, &VerticalResolution, &ColorDepth, &RefreshRate); } else { Status = EFI_UNSUPPORTED; @@ -466,8 +466,7 @@ InternalPrintGraphic ( NULL ); - } else if (FeaturePcdGet (PcdUgaConsumeSupport)) { - ASSERT (UgaDraw!= NULL); + } else if (UgaDraw != NULL) { Blt->Image.Bitmap = AllocateZeroPool (Blt->Width * Blt->Height * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL)); ASSERT (Blt->Image.Bitmap != NULL); -- cgit v1.2.3