Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
31c82e3b
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,发现更多精彩内容 >>
提交
31c82e3b
编写于
1月 05, 2021
作者:
M
Marvin Häuser
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OpenCanopy: Small optimisations
上级
378fb8ab
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
17 deletion
+13
-17
Platform/OpenCanopy/OpenCanopy.c
Platform/OpenCanopy/OpenCanopy.c
+11
-12
Platform/OpenCanopy/OpenCanopy.h
Platform/OpenCanopy/OpenCanopy.h
+2
-2
Platform/OpenCanopy/Views/BootPicker.c
Platform/OpenCanopy/Views/BootPicker.c
+0
-2
Platform/OpenCanopy/Views/BootPicker.h
Platform/OpenCanopy/Views/BootPicker.h
+0
-1
未找到文件。
Platform/OpenCanopy/OpenCanopy.c
浏览文件 @
31c82e3b
...
...
@@ -98,11 +98,11 @@ GuiClipChildBounds (
ASSERT
(
ReqOffset
!=
NULL
);
ASSERT
(
ReqLength
!=
NULL
);
if
(
ChildLength
==
0
)
{
return
FALSE
;
}
if
(
ChildOffset
>=
0
)
{
if
(
ChildLength
==
0
)
{
return
FALSE
;
}
PosChildOffset
=
(
UINT32
)
ChildOffset
;
}
else
{
if
((
INT64
)
ChildLength
-
(
-
ChildOffset
)
<=
0
)
{
...
...
@@ -113,6 +113,8 @@ GuiClipChildBounds (
ChildLength
=
(
UINT32
)(
ChildLength
-
(
-
ChildOffset
));
}
ASSERT
(
ChildLength
>
0
);
NewOffset
=
*
ReqOffset
;
NewLength
=
*
ReqLength
;
...
...
@@ -637,6 +639,8 @@ GuiDrawScreen (
{
UINT32
PosX
;
UINT32
PosY
;
INT64
EffWidth
;
INT64
EffHeight
;
ASSERT
(
DrawContext
!=
NULL
);
ASSERT
(
DrawContext
->
Screen
!=
NULL
);
...
...
@@ -665,15 +669,10 @@ GuiDrawScreen (
PosY
=
0
;
}
if
(
PosX
>=
DrawContext
->
Screen
->
Width
||
PosY
>=
DrawContext
->
Screen
->
Height
)
{
return
;
}
EffWidth
=
MIN
(
Width
,
(
INT64
)
DrawContext
->
Screen
->
Width
-
PosX
);
EffHeight
=
MIN
(
Height
,
(
INT64
)
DrawContext
->
Screen
->
Height
-
PosY
);
Width
=
MIN
(
Width
,
DrawContext
->
Screen
->
Width
-
PosX
);
Height
=
MIN
(
Height
,
DrawContext
->
Screen
->
Height
-
PosY
);
if
(
Width
==
0
||
Height
==
0
)
{
if
(
EffWidth
<=
0
||
EffHeight
<=
0
)
{
return
;
}
...
...
Platform/OpenCanopy/OpenCanopy.h
浏览文件 @
31c82e3b
...
...
@@ -191,8 +191,8 @@ GuiObjDelegatePtrEvent (
BOOLEAN
GuiClipChildBounds
(
IN
INT64
Object
Offset
,
IN
UINT32
Object
Length
,
IN
INT64
Child
Offset
,
IN
UINT32
Child
Length
,
IN
OUT
UINT32
*
ReqOffset
,
IN
OUT
UINT32
*
ReqLength
);
...
...
Platform/OpenCanopy/Views/BootPicker.c
浏览文件 @
31c82e3b
...
...
@@ -773,7 +773,6 @@ GLOBAL_REMOVE_IF_UNREFERENCED GUI_OBJ_CLICKABLE mBootPickerSelector = {
INITIALIZE_LIST_HEAD_VARIABLE
(
mBootPickerSelector
.
Hdr
.
Obj
.
Children
)
}
},
NULL
,
NULL
};
...
...
@@ -1280,7 +1279,6 @@ BootPickerViewInitialize (
NULL
);
mBootPickerSelector
.
ClickImage
=
&
GuiContext
->
Icons
[
ICON_SELECTOR
][
ICON_TYPE_BASE
];
mBootPickerSelector
.
CurrentImage
=
&
GuiContext
->
Icons
[
ICON_SELECTOR
][
ICON_TYPE_BASE
];
mBootPickerSelector
.
Hdr
.
Obj
.
OffsetX
=
0
;
mBootPickerSelector
.
Hdr
.
Obj
.
OffsetY
=
0
;
...
...
Platform/OpenCanopy/Views/BootPicker.h
浏览文件 @
31c82e3b
...
...
@@ -12,7 +12,6 @@
typedef
struct
{
GUI_OBJ_CHILD
Hdr
;
CONST
GUI_IMAGE
*
ClickImage
;
CONST
GUI_IMAGE
*
CurrentImage
;
}
GUI_OBJ_CLICKABLE
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录