]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add PCD to save size.
authorgdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 24 Mar 2009 08:43:54 +0000 (08:43 +0000)
committergdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 24 Mar 2009 08:43:54 +0000 (08:43 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7932 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLibPrint.c

index 20ad068962c57f02acb660ff3cab2ed3e0ea79f4..0e65016906a55bc72450497ce9de379e00dd99ec 100644 (file)
@@ -393,7 +393,7 @@ InternalPrintGraphic (
   if (GraphicsOutput != NULL) {\r
     HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution;\r
     VerticalResolution = GraphicsOutput->Mode->Info->VerticalResolution;\r
-  } else if (UgaDraw != NULL) {\r
+  } else if (FeaturePcdGet (PcdUgaConsumeSupport) && UgaDraw != NULL) {\r
     UgaDraw->GetMode (UgaDraw, &HorizontalResolution, &VerticalResolution, &ColorDepth, &RefreshRate);\r
   } else {\r
     Status = EFI_UNSUPPORTED;\r
@@ -466,7 +466,7 @@ InternalPrintGraphic (
                          NULL\r
                          );\r
 \r
-  } else if (UgaDraw != NULL) {\r
+  } else if (FeaturePcdGet (PcdUgaConsumeSupport) && UgaDraw != NULL) {\r
 \r
     Blt->Image.Bitmap = AllocateZeroPool (Blt->Width * Blt->Height * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));\r
     ASSERT (Blt->Image.Bitmap != NULL);\r