Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
anbox
提交
f61a7f91
A
anbox
项目概览
openeuler
/
anbox
通知
24
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
anbox
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f61a7f91
编写于
5月 03, 2017
作者:
S
Simon Fels
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use a full screen loading image which includes some text
上级
817f80d6
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
7 addition
and
8 deletion
+7
-8
CMakeLists.txt
CMakeLists.txt
+1
-1
data/ui/loading-screen.png
data/ui/loading-screen.png
+0
-0
snapcraft.yaml
snapcraft.yaml
+1
-0
src/anbox/cmds/launch.cpp
src/anbox/cmds/launch.cpp
+2
-2
src/anbox/ui/splash_screen.cpp
src/anbox/ui/splash_screen.cpp
+3
-5
未找到文件。
CMakeLists.txt
浏览文件 @
f61a7f91
...
...
@@ -105,5 +105,5 @@ if (NOT "${HOST_CMAKE_C_COMPILER}" STREQUAL "")
message
(
STATUS
"Host C compiler:
${
HOST_CMAKE_CXX_COMPILER
}
"
)
endif
()
install
(
FILES
snap/gui/ico
n.png DESTINATION share/anbox/ui
)
install
(
FILES
data/ui/loading-scree
n.png DESTINATION share/anbox/ui
)
data/ui/loading-screen.png
0 → 100644
浏览文件 @
f61a7f91
13.4 KB
snapcraft.yaml
浏览文件 @
f61a7f91
...
...
@@ -124,4 +124,5 @@ parts:
make test
prime
:
-
usr/bin/anbox
-
usr/share/anbox
-
usr/lib/*-linux-*/
src/anbox/cmds/launch.cpp
浏览文件 @
f61a7f91
...
...
@@ -88,8 +88,8 @@ anbox::cmds::Launch::Launch()
const
auto
snap_path
=
utils
::
get_env_value
(
"SNAP"
);
if
(
!
snap_path
.
empty
())
{
const
auto
resource_path
=
utils
::
string_format
(
"%s/share/anbox"
,
snap_path
);
SystemConfiguration
::
instance
().
set_resource_path
(
resource_path
)
const
auto
resource_path
=
utils
::
string_format
(
"%s/
usr/
share/anbox"
,
snap_path
);
SystemConfiguration
::
instance
().
set_resource_path
(
resource_path
)
;
}
std
::
shared_ptr
<
ui
::
SplashScreen
>
ss
;
...
...
src/anbox/ui/splash_screen.cpp
浏览文件 @
f61a7f91
...
...
@@ -48,18 +48,16 @@ SplashScreen::SplashScreen() {
if
(
!
renderer
)
BOOST_THROW_EXCEPTION
(
std
::
runtime_error
(
"Could not create renderer"
));
const
auto
icon_path
=
utils
::
string_format
(
"%s/ui/
ico
n.png"
,
SystemConfiguration
::
instance
().
resource_dir
());
const
auto
icon_path
=
utils
::
string_format
(
"%s/ui/
loading-scree
n.png"
,
SystemConfiguration
::
instance
().
resource_dir
());
auto
img
=
IMG_LoadTexture
(
renderer
,
icon_path
.
c_str
());
if
(
!
img
)
{
const
auto
msg
=
utils
::
string_format
(
"Failed to create texture from %s"
,
icon_path
);
BOOST_THROW_EXCEPTION
(
std
::
runtime_error
(
msg
));
}
const
auto
tex_width
=
128
,
tex_height
=
128
;
SDL_Rect
r
{(
width
-
tex_width
)
/
2
,
(
height
-
tex_height
)
/
2
,
128
,
128
};
SDL_SetRenderDrawColor
(
renderer
,
0xee
,
0xee
,
0xee
,
0xff
);
SDL_RenderClear
(
renderer
);
SDL_Rect
r
{
0
,
0
,
1024
,
768
};
SDL_RenderCopy
(
renderer
,
img
,
nullptr
,
&
r
);
SDL_RenderPresent
(
renderer
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录