提交 8b5099bf 编写于 作者: V vit9696

Docs: Fixed launching Shell with text over it

上级 da8302f3
......@@ -17,6 +17,7 @@ OpenCore Changelog
- Added `ApplePanic` to store panic logs on ESP root
- Fixed `ReconnectOnResChange` reconnecting even without res change
- Fixed OpenCanopy showing internal icons for external drives
- Fixed OpenCanopy launching Shell with text over it
#### v0.5.8
- Fixed invalid CPU object reference in SSDT-PLUG
......
......@@ -30,7 +30,8 @@ typedef enum {
/**
Special commands sent to Builtin text renderer through TestString.
**/
#define OC_CONSOLE_CLEAR_AND_CLIP L"ClearAndClip"
#define OC_CONSOLE_CLEAR_AND_CLIP L"ClearAndClip"
#define OC_CONSOLE_CLEAR_WHOLE_AND_CLIP L"ClearWholeAndClip"
/**
Configure console control protocol with given options.
......
......@@ -650,6 +650,7 @@ OcRunBootPicker (
//
// Clear screen from picker contents before loading the entry.
//
gST->ConOut->TestString (gST->ConOut, OC_CONSOLE_CLEAR_WHOLE_AND_CLIP);
gST->ConOut->ClearScreen (gST->ConOut);
//
// Voice chosen information.
......
......@@ -570,6 +570,12 @@ AsciiTextTestString (
This->ClearScreen (This);
mConsoleMaxPosX = 0;
mConsoleMaxPosY = 0;
} else if (StrCmp (String, OC_CONSOLE_CLEAR_WHOLE_AND_CLIP) == 0) {
mConsoleMaxPosX = mGraphicsOutput->Mode->Info->HorizontalResolution / TGT_CHAR_WIDTH;
mConsoleMaxPosY = mGraphicsOutput->Mode->Info->VerticalResolution / TGT_CHAR_HEIGHT;
This->ClearScreen (This);
mConsoleMaxPosX = 0;
mConsoleMaxPosY = 0;
}
return EFI_SUCCESS;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册