Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
0ed11756
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看板
提交
0ed11756
编写于
1月 16, 2020
作者:
B
bae
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8233250: Better X11 rendering
Reviewed-by: andrew
上级
fea3b886
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
7 addition
and
7 deletion
+7
-7
src/share/native/sun/awt/splashscreen/splashscreen_gfx_impl.c
...share/native/sun/awt/splashscreen/splashscreen_gfx_impl.c
+1
-1
src/solaris/native/sun/awt/multiVis.c
src/solaris/native/sun/awt/multiVis.c
+1
-1
src/solaris/native/sun/java2d/x11/X11PMBlitLoops.c
src/solaris/native/sun/java2d/x11/X11PMBlitLoops.c
+1
-1
src/solaris/native/sun/java2d/x11/X11TextRenderer_md.c
src/solaris/native/sun/java2d/x11/X11TextRenderer_md.c
+1
-1
src/solaris/native/sun/java2d/x11/XRBackendNative.c
src/solaris/native/sun/java2d/x11/XRBackendNative.c
+3
-3
未找到文件。
src/share/native/sun/awt/splashscreen/splashscreen_gfx_impl.c
浏览文件 @
0ed11756
...
@@ -206,7 +206,7 @@ initRect(ImageRect * pRect, int x, int y, int width, int height, int jump,
...
@@ -206,7 +206,7 @@ initRect(ImageRect * pRect, int x, int y, int width, int height, int jump,
int
depthBytes
=
format
->
depthBytes
;
int
depthBytes
=
format
->
depthBytes
;
pRect
->
pBits
=
pBits
;
pRect
->
pBits
=
pBits
;
INCPN
(
byte_t
,
pRect
->
pBits
,
y
*
stride
+
x
*
depthBytes
);
INCPN
(
byte_t
,
pRect
->
pBits
,
(
intptr_t
)
y
*
stride
+
x
*
depthBytes
);
pRect
->
numLines
=
height
;
pRect
->
numLines
=
height
;
pRect
->
numSamples
=
width
;
pRect
->
numSamples
=
width
;
pRect
->
stride
=
stride
*
jump
;
pRect
->
stride
=
stride
*
jump
;
...
...
src/solaris/native/sun/awt/multiVis.c
浏览文件 @
0ed11756
...
@@ -401,7 +401,7 @@ list_ptr regions;/* list of regions to read from */
...
@@ -401,7 +401,7 @@ list_ptr regions;/* list of regions to read from */
ximage
=
XCreateImage
(
disp
,
fakeVis
,(
uint32_t
)
depth
,
format
,
0
,
NULL
,
ximage
=
XCreateImage
(
disp
,
fakeVis
,(
uint32_t
)
depth
,
format
,
0
,
NULL
,
(
uint32_t
)
width
,(
uint32_t
)
height
,
8
,
0
);
(
uint32_t
)
width
,(
uint32_t
)
height
,
8
,
0
);
ximage
->
data
=
calloc
(
ximage
->
bytes_per_line
*
height
*
((
format
==
ZPixmap
)
?
1
:
depth
),
sizeof
(
char
));
ximage
->
data
=
calloc
(
(
size_t
)
ximage
->
bytes_per_line
*
height
*
((
format
==
ZPixmap
)
?
1
:
depth
),
sizeof
(
char
));
ximage
->
bits_per_pixel
=
depth
;
/** Valid only if format is ZPixmap ***/
ximage
->
bits_per_pixel
=
depth
;
/** Valid only if format is ZPixmap ***/
for
(
reg
=
(
image_region_type
*
)
first_in_list
(
regions
);
reg
;
for
(
reg
=
(
image_region_type
*
)
first_in_list
(
regions
);
reg
;
...
...
src/solaris/native/sun/java2d/x11/X11PMBlitLoops.c
浏览文件 @
0ed11756
...
@@ -263,7 +263,7 @@ Java_sun_java2d_x11_X11PMBlitLoops_updateBitmask
...
@@ -263,7 +263,7 @@ Java_sun_java2d_x11_X11PMBlitLoops_updateBitmask
return
;
return
;
}
}
dstScan
=
image
->
bytes_per_line
;
dstScan
=
image
->
bytes_per_line
;
image
->
data
=
malloc
(
dstScan
*
height
);
image
->
data
=
malloc
(
(
size_t
)
dstScan
*
height
);
if
(
image
->
data
==
NULL
)
{
if
(
image
->
data
==
NULL
)
{
XFree
(
image
);
XFree
(
image
);
AWT_UNLOCK
();
AWT_UNLOCK
();
...
...
src/solaris/native/sun/java2d/x11/X11TextRenderer_md.c
浏览文件 @
0ed11756
...
@@ -154,7 +154,7 @@ static void FillBitmap(XImage *theImage,
...
@@ -154,7 +154,7 @@ static void FillBitmap(XImage *theImage,
height
=
bottom
-
top
;
height
=
bottom
-
top
;
top
-=
clipTop
;
top
-=
clipTop
;
left
-=
clipLeft
;
left
-=
clipLeft
;
pPix
=
((
jubyte
*
)
theImage
->
data
)
+
(
left
>>
3
)
+
top
*
scan
;
pPix
=
((
jubyte
*
)
theImage
->
data
)
+
(
left
>>
3
)
+
(
intptr_t
)
top
*
scan
;
left
&=
0x07
;
left
&=
0x07
;
if
(
theImage
->
bitmap_bit_order
==
MSBFirst
)
{
if
(
theImage
->
bitmap_bit_order
==
MSBFirst
)
{
left
=
0x80
>>
left
;
left
=
0x80
>>
left
;
...
...
src/solaris/native/sun/java2d/x11/XRBackendNative.c
浏览文件 @
0ed11756
...
@@ -756,7 +756,7 @@ Java_sun_java2d_xr_XRBackendNative_putMaskNative
...
@@ -756,7 +756,7 @@ Java_sun_java2d_xr_XRBackendNative_putMaskNative
if
(
ea
!=
1
.
0
f
)
{
if
(
ea
!=
1
.
0
f
)
{
for
(
line
=
0
;
line
<
height
;
line
++
)
{
for
(
line
=
0
;
line
<
height
;
line
++
)
{
for
(
pix
=
0
;
pix
<
width
;
pix
++
)
{
for
(
pix
=
0
;
pix
<
width
;
pix
++
)
{
int
index
=
maskScan
*
line
+
pix
+
maskOff
;
size_t
index
=
(
size_t
)
maskScan
*
line
+
pix
+
maskOff
;
mask
[
index
]
=
(((
unsigned
char
)
mask
[
index
])
*
ea
);
mask
[
index
]
=
(((
unsigned
char
)
mask
[
index
])
*
ea
);
}
}
}
}
...
@@ -781,8 +781,8 @@ Java_sun_java2d_xr_XRBackendNative_putMaskNative
...
@@ -781,8 +781,8 @@ Java_sun_java2d_xr_XRBackendNative_putMaskNative
if
(
imageFits
)
{
if
(
imageFits
)
{
for
(
line
=
0
;
line
<
height
;
line
++
)
{
for
(
line
=
0
;
line
<
height
;
line
++
)
{
for
(
pix
=
0
;
pix
<
width
;
pix
++
)
{
for
(
pix
=
0
;
pix
<
width
;
pix
++
)
{
img
->
data
[
line
*
img
->
bytes_per_line
+
pix
]
=
img
->
data
[
(
size_t
)
line
*
img
->
bytes_per_line
+
pix
]
=
(
unsigned
char
)
(
mask
[
maskScan
*
line
+
pix
+
maskOff
]);
(
unsigned
char
)
(
mask
[
(
size_t
)
maskScan
*
line
+
pix
+
maskOff
]);
}
}
}
}
}
else
{
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录