Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
cdeadd30
O
OpenCorePKG_MOD
项目概览
btwise
/
OpenCorePKG_MOD
通知
26
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OpenCorePKG_MOD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cdeadd30
编写于
3月 31, 2021
作者:
M
MikeBeaton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OpenCanopy: Update default cursor position slightly to match Apple picker
上级
871d945e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
14 deletion
+23
-14
Changelog.md
Changelog.md
+1
-0
Platform/OpenCanopy/OcBootstrap.c
Platform/OpenCanopy/OcBootstrap.c
+22
-14
未找到文件。
Changelog.md
浏览文件 @
cdeadd30
...
...
@@ -46,6 +46,7 @@ OpenCore Changelog
-
Added additional support for configuring correct key repeat behaviour with KeySupport mode
-
Fixed CPU multiplier detection on pre-Nehalem Intel CPUs
-
Fixed incorrect handling of multiple processors and processor cache in SMBIOS
-
Matched default Apple boot picker cursor start position
#### v0.6.7
-
Fixed ocvalidate return code to be non-zero when issues are found
...
...
Platform/OpenCanopy/OcBootstrap.c
浏览文件 @
cdeadd30
...
...
@@ -30,6 +30,11 @@
#include "BmfLib.h"
#include "GuiApp.h"
//
// Add slight x offset of cursor by its position within its icon file,
// in order to match look of Apple picker initial position.
//
#define DEFAULT_CURSOR_OFFSET_X BOOT_CURSOR_OFFSET
#define DEFAULT_CURSOR_OFFSET_Y 112U
extern
BOOT_PICKER_GUI_CONTEXT
mGuiContext
;
...
...
@@ -77,6 +82,21 @@ OcShowMenuByOcLeave (
OcConsoleControlSetMode
(
mPreviousMode
);
}
STATIC
VOID
OcSetInitialCursorOffset
(
VOID
)
{
//
// The cursor position is updated on GUI exit, so don't overwrite it.
//
if
(
mGuiContext
.
PickerContext
==
NULL
)
{
mGuiContext
.
CursorOffsetX
=
DEFAULT_CURSOR_OFFSET_X
*
mGuiContext
.
Scale
;
mGuiContext
.
CursorOffsetY
=
DEFAULT_CURSOR_OFFSET_Y
*
mGuiContext
.
Scale
;
}
}
EFI_STATUS
EFIAPI
OcShowMenuByOc
(
...
...
@@ -89,13 +109,7 @@ OcShowMenuByOc (
UINTN
Index
;
*
ChosenBootEntry
=
NULL
;
//
// The cursor position is updated on GUI exit, so don't overwrite it.
//
if
(
mGuiContext
.
PickerContext
==
NULL
)
{
mGuiContext
.
CursorOffsetX
=
0
;
mGuiContext
.
CursorOffsetY
=
DEFAULT_CURSOR_OFFSET_Y
*
mGuiContext
.
Scale
;
}
OcSetInitialCursorOffset
();
mGuiContext
.
BootEntry
=
NULL
;
mGuiContext
.
ReadyToBoot
=
FALSE
;
mGuiContext
.
HideAuxiliary
=
BootContext
->
PickerContext
->
HideAuxiliary
;
...
...
@@ -207,13 +221,7 @@ OcShowPasswordByOc (
)
{
EFI_STATUS
Status
;
//
// The cursor position is updated on GUI exit, so don't overwrite it.
//
if
(
mGuiContext
.
PickerContext
==
NULL
)
{
mGuiContext
.
CursorOffsetX
=
0
;
mGuiContext
.
CursorOffsetY
=
DEFAULT_CURSOR_OFFSET_Y
*
mGuiContext
.
Scale
;
}
OcSetInitialCursorOffset
();
mGuiContext
.
BootEntry
=
NULL
;
mGuiContext
.
ReadyToBoot
=
FALSE
;
mGuiContext
.
HideAuxiliary
=
TRUE
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录