EFI_CONSOLE_CONTROL_PROTOCOL *ConsoleControl = NULL;
Status = gBS->LocateProtocol (&gEfiConsoleControlProtocolGuid, NULL, (VOID**)&ConsoleControl);
if (ConsoleControl != NULL)
{
ConsoleControl->SetMode(ConsoleControl, EfiConsoleControlScreenGraphics);
}
Only below two modes can choose from.
EfiConsoleControlScreenText,
EfiConsoleControlScreenGraphics
Learn one thing. Even switch to graphic mode, you can still use EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL or even Print.
沒有留言:
張貼留言