summaryrefslogtreecommitdiff
path: root/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c
diff options
context:
space:
mode:
authorgdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-24 08:43:54 +0000
committergdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-24 08:43:54 +0000
commit4af947e5cac7f0a417d8b68edf6c92874358ed6e (patch)
treee5de7a92db479289572aad361d42dea435660930 /IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c
parent4601f3745591b04f7bb4d3508f77bba031c9d2a6 (diff)
downloadedk2-platforms-4af947e5cac7f0a417d8b68edf6c92874358ed6e.tar.xz
Add PCD to save size.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7932 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c')
-rw-r--r--IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c b/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c
index 20ad068962..0e65016906 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 (UgaDraw != NULL) {
+ } else if (FeaturePcdGet (PcdUgaConsumeSupport) && UgaDraw != NULL) {
UgaDraw->GetMode (UgaDraw, &HorizontalResolution, &VerticalResolution, &ColorDepth, &RefreshRate);
} else {
Status = EFI_UNSUPPORTED;
@@ -466,7 +466,7 @@ InternalPrintGraphic (
NULL
);
- } else if (UgaDraw != NULL) {
+ } else if (FeaturePcdGet (PcdUgaConsumeSupport) && UgaDraw != NULL) {
Blt->Image.Bitmap = AllocateZeroPool (Blt->Width * Blt->Height * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));
ASSERT (Blt->Image.Bitmap != NULL);