mirror of https://github.com/acidanthera/audk.git
Add PCD to save size.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7932 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4601f37455
commit
4af947e5ca
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue