Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
a85eaeae
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a85eaeae
编写于
9月 13, 2013
作者:
V
vadim
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8023057: Enhance start up image display
Reviewed-by: anthony, serb, mschoene
上级
1964ea49
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
21 addition
and
11 deletion
+21
-11
src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m
src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m
+2
-2
src/share/native/sun/awt/splashscreen/splashscreen_impl.c
src/share/native/sun/awt/splashscreen/splashscreen_impl.c
+17
-7
src/solaris/native/sun/awt/splashscreen/splashscreen_sys.c
src/solaris/native/sun/awt/splashscreen/splashscreen_sys.c
+2
-2
未找到文件。
src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m
浏览文件 @
a85eaeae
...
...
@@ -290,8 +290,8 @@ SplashEventLoop(Splash * splash) {
SplashUnlock
(
splash
);
rc =
poll(pfd,
1,
timeout
);
SplashLock
(
splash
);
if
(
splash-
>
isVisible
>0
&&
SplashTime() >= splash->time +
splash->frames[splash->currentFrame].delay) {
if
(
splash-
>
isVisible
> 0
&&
splash->currentFrame >= 0
&&
SplashTime() >= splash->time +
splash->frames[splash->currentFrame].delay) {
SplashNextFrame(splash);
SplashRedrawWindow(splash);
}
...
...
src/share/native/sun/awt/splashscreen/splashscreen_impl.c
浏览文件 @
a85eaeae
...
...
@@ -111,8 +111,9 @@ SplashDone(Splash * splash)
int
SplashIsStillLooping
(
Splash
*
splash
)
{
if
(
splash
->
currentFrame
<
0
)
if
(
splash
->
currentFrame
<
0
)
{
return
0
;
}
return
splash
->
loopCount
!=
1
||
splash
->
currentFrame
+
1
<
splash
->
frameCount
;
}
...
...
@@ -121,17 +122,22 @@ void
SplashUpdateScreenData
(
Splash
*
splash
)
{
ImageRect
srcRect
,
dstRect
;
if
(
splash
->
currentFrame
<
0
)
{
return
;
}
initRect
(
&
srcRect
,
0
,
0
,
splash
->
width
,
splash
->
height
,
1
,
splash
->
width
*
sizeof
(
rgbquad_t
),
splash
->
frames
[
splash
->
currentFrame
].
bitmapBits
,
&
splash
->
imageFormat
);
if
(
splash
->
screenData
)
if
(
splash
->
screenData
)
{
free
(
splash
->
screenData
);
}
splash
->
screenStride
=
splash
->
width
*
splash
->
screenFormat
.
depthBytes
;
if
(
splash
->
byteAlignment
>
1
)
if
(
splash
->
byteAlignment
>
1
)
{
splash
->
screenStride
=
(
splash
->
screenStride
+
splash
->
byteAlignment
-
1
)
&
~
(
splash
->
byteAlignment
-
1
);
}
splash
->
screenData
=
malloc
(
splash
->
height
*
splash
->
screenStride
);
initRect
(
&
dstRect
,
0
,
0
,
splash
->
width
,
splash
->
height
,
1
,
splash
->
screenStride
,
splash
->
screenData
,
&
splash
->
screenFormat
);
...
...
@@ -146,17 +152,20 @@ SplashUpdateScreenData(Splash * splash)
void
SplashNextFrame
(
Splash
*
splash
)
{
if
(
splash
->
currentFrame
<
0
)
if
(
splash
->
currentFrame
<
0
)
{
return
;
}
do
{
if
(
!
SplashIsStillLooping
(
splash
))
if
(
!
SplashIsStillLooping
(
splash
))
{
return
;
}
splash
->
time
+=
splash
->
frames
[
splash
->
currentFrame
].
delay
;
if
(
++
splash
->
currentFrame
>=
splash
->
frameCount
)
{
splash
->
currentFrame
=
0
;
if
(
splash
->
loopCount
>
0
)
if
(
splash
->
loopCount
>
0
)
{
splash
->
loopCount
--
;
}
}
}
while
(
splash
->
time
+
splash
->
frames
[
splash
->
currentFrame
].
delay
-
SplashTime
()
<=
0
);
}
...
...
@@ -183,8 +192,9 @@ BitmapToYXBandedRectangles(ImageRect * pSrcRect, RECT_T * out)
pSrc
+=
pSrcRect
->
depthBytes
;
++
i
;
}
if
(
i
>=
pSrcRect
->
numSamples
)
if
(
i
>=
pSrcRect
->
numSamples
)
{
break
;
}
i0
=
i
;
while
(
i
<
pSrcRect
->
numSamples
&&
getRGBA
(
pSrc
,
pSrcRect
->
format
)
>=
ALPHA_THRESHOLD
)
{
...
...
src/solaris/native/sun/awt/splashscreen/splashscreen_sys.c
浏览文件 @
a85eaeae
...
...
@@ -577,8 +577,8 @@ SplashEventLoop(Splash * splash) {
SplashUnlock
(
splash
);
rc
=
poll
(
pfd
,
2
,
timeout
);
SplashLock
(
splash
);
if
(
splash
->
isVisible
>
0
&&
SplashTime
()
>=
splash
->
time
+
splash
->
frames
[
splash
->
currentFrame
].
delay
)
{
if
(
splash
->
isVisible
>
0
&&
splash
->
currentFrame
>=
0
&&
SplashTime
()
>=
splash
->
time
+
splash
->
frames
[
splash
->
currentFrame
].
delay
)
{
SplashNextFrame
(
splash
);
SplashUpdateShape
(
splash
);
SplashRedrawWindow
(
splash
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录