Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
1758d200
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看板
提交
1758d200
编写于
1月 21, 2016
作者:
S
serb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8080492: [Parfait] Uninitialised variable in jdk/src/java/desktop/windows/native/libawt/
Reviewed-by: prr, vadim
上级
8df7c072
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
33 addition
and
20 deletion
+33
-20
src/windows/native/sun/java2d/d3d/D3DBlitLoops.cpp
src/windows/native/sun/java2d/d3d/D3DBlitLoops.cpp
+5
-3
src/windows/native/sun/java2d/d3d/D3DTextRenderer.cpp
src/windows/native/sun/java2d/d3d/D3DTextRenderer.cpp
+2
-2
src/windows/native/sun/windows/ShellFolder2.cpp
src/windows/native/sun/windows/ShellFolder2.cpp
+3
-0
src/windows/native/sun/windows/awt_Component.cpp
src/windows/native/sun/windows/awt_Component.cpp
+4
-0
src/windows/native/sun/windows/awt_DesktopProperties.cpp
src/windows/native/sun/windows/awt_DesktopProperties.cpp
+2
-2
src/windows/native/sun/windows/awt_Font.cpp
src/windows/native/sun/windows/awt_Font.cpp
+4
-4
src/windows/native/sun/windows/awt_Frame.cpp
src/windows/native/sun/windows/awt_Frame.cpp
+4
-2
src/windows/native/sun/windows/awt_Label.cpp
src/windows/native/sun/windows/awt_Label.cpp
+5
-4
src/windows/native/sun/windows/awt_PrintJob.cpp
src/windows/native/sun/windows/awt_PrintJob.cpp
+2
-2
src/windows/native/sun/windows/awt_TextComponent.cpp
src/windows/native/sun/windows/awt_TextComponent.cpp
+2
-1
未找到文件。
src/windows/native/sun/java2d/d3d/D3DBlitLoops.cpp
浏览文件 @
1758d200
/*
/*
* Copyright (c) 2007, 20
08
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 20
16
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -508,8 +508,10 @@ D3DBlitTextureToSurface(D3DContext *d3dc,
...
@@ -508,8 +508,10 @@ D3DBlitTextureToSurface(D3DContext *d3dc,
RETURN_STATUS_IF_NULL
(
srcOps
->
pResource
,
E_FAIL
);
RETURN_STATUS_IF_NULL
(
srcOps
->
pResource
,
E_FAIL
);
RETURN_STATUS_IF_NULL
(
dstOps
->
pResource
,
E_FAIL
);
RETURN_STATUS_IF_NULL
(
dstOps
->
pResource
,
E_FAIL
);
if
((
pSrc
=
srcOps
->
pResource
->
GetTexture
())
==
NULL
||
pSrc
=
srcOps
->
pResource
->
GetTexture
();
FAILED
(
res
=
d3dc
->
BeginScene
(
STATE_TEXTUREOP
)
||
RETURN_STATUS_IF_NULL
(
pSrc
,
E_FAIL
);
if
(
FAILED
(
res
=
d3dc
->
BeginScene
(
STATE_TEXTUREOP
)
||
FAILED
(
res
=
d3dc
->
SetTexture
(
pSrc
))))
FAILED
(
res
=
d3dc
->
SetTexture
(
pSrc
))))
{
{
J2dRlsTraceLn
(
J2D_TRACE_ERROR
,
J2dRlsTraceLn
(
J2D_TRACE_ERROR
,
...
...
src/windows/native/sun/java2d/d3d/D3DTextRenderer.cpp
浏览文件 @
1758d200
/*
/*
* Copyright (c) 2007, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 201
6
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -355,7 +355,7 @@ D3DTR_UpdateCachedDestination(D3DContext *d3dc, D3DSDOps *dstOps,
...
@@ -355,7 +355,7 @@ D3DTR_UpdateCachedDestination(D3DContext *d3dc, D3DSDOps *dstOps,
jint
dx1
,
dy1
,
dx2
,
dy2
;
jint
dx1
,
dy1
,
dx2
,
dy2
;
D3DResource
*
pCachedDestTexRes
;
D3DResource
*
pCachedDestTexRes
;
IDirect3DSurface9
*
pCachedDestSurface
,
*
pDst
;
IDirect3DSurface9
*
pCachedDestSurface
,
*
pDst
;
HRESULT
res
;
HRESULT
res
=
S_OK
;
if
(
isCachedDestValid
&&
INSIDE
(
gx1
,
gy1
,
gx2
,
gy2
,
cachedDestBounds
))
{
if
(
isCachedDestValid
&&
INSIDE
(
gx1
,
gy1
,
gx2
,
gy2
,
cachedDestBounds
))
{
// glyph is already within the cached destination bounds; no need
// glyph is already within the cached destination bounds; no need
...
...
src/windows/native/sun/windows/ShellFolder2.cpp
浏览文件 @
1758d200
...
@@ -673,6 +673,9 @@ JNIEXPORT jlong JNICALL Java_sun_awt_shell_Win32ShellFolder2_getLinkLocation
...
@@ -673,6 +673,9 @@ JNIEXPORT jlong JNICALL Java_sun_awt_shell_Win32ShellFolder2_getLinkLocation
case
STRRET_WSTR
:
case
STRRET_WSTR
:
wstr
=
strret
.
pOleStr
;
wstr
=
strret
.
pOleStr
;
break
;
break
;
default:
return
NULL
;
}
}
IShellLinkW
*
psl
;
IShellLinkW
*
psl
;
...
...
src/windows/native/sun/windows/awt_Component.cpp
浏览文件 @
1758d200
...
@@ -5200,6 +5200,8 @@ void AwtComponent::SynthesizeMouseMessage(JNIEnv *env, jobject mouseEvent)
...
@@ -5200,6 +5200,8 @@ void AwtComponent::SynthesizeMouseMessage(JNIEnv *env, jobject mouseEvent)
message
=
WM_MBUTTONDOWN
;
break
;
message
=
WM_MBUTTONDOWN
;
break
;
case
java_awt_event_MouseEvent_BUTTON2
:
case
java_awt_event_MouseEvent_BUTTON2
:
message
=
WM_RBUTTONDOWN
;
break
;
message
=
WM_RBUTTONDOWN
;
break
;
default:
return
;
}
}
break
;
break
;
}
}
...
@@ -5211,6 +5213,8 @@ void AwtComponent::SynthesizeMouseMessage(JNIEnv *env, jobject mouseEvent)
...
@@ -5211,6 +5213,8 @@ void AwtComponent::SynthesizeMouseMessage(JNIEnv *env, jobject mouseEvent)
message
=
WM_MBUTTONUP
;
break
;
message
=
WM_MBUTTONUP
;
break
;
case
java_awt_event_MouseEvent_BUTTON2
:
case
java_awt_event_MouseEvent_BUTTON2
:
message
=
WM_RBUTTONUP
;
break
;
message
=
WM_RBUTTONUP
;
break
;
default:
return
;
}
}
break
;
break
;
}
}
...
...
src/windows/native/sun/windows/awt_DesktopProperties.cpp
浏览文件 @
1758d200
/*
/*
* Copyright (c) 1999, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
6
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -388,7 +388,7 @@ void CheckFontSmoothingSettings(HWND hWnd) {
...
@@ -388,7 +388,7 @@ void CheckFontSmoothingSettings(HWND hWnd) {
}
}
BOOL
fontSmoothing
=
FALSE
,
settingsChanged
;
BOOL
fontSmoothing
=
FALSE
,
settingsChanged
;
UINT
fontSmoothingType
=
0
,
fontSmoothingContrast
=
0
,
subPixelOrder
;
UINT
fontSmoothingType
=
0
,
fontSmoothingContrast
=
0
,
subPixelOrder
=
0
;
if
(
firstTime
)
{
if
(
firstTime
)
{
SystemParametersInfo
(
SPI_GETFONTSMOOTHING
,
0
,
&
fontSmoothing
,
0
);
SystemParametersInfo
(
SPI_GETFONTSMOOTHING
,
0
,
&
fontSmoothing
,
0
);
...
...
src/windows/native/sun/windows/awt_Font.cpp
浏览文件 @
1758d200
/*
/*
* Copyright (c) 1996, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
5
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -270,7 +270,7 @@ AwtFont* AwtFont::Create(JNIEnv *env, jobject font, jint angle, jfloat awScale)
...
@@ -270,7 +270,7 @@ AwtFont* AwtFont::Create(JNIEnv *env, jobject font, jint angle, jfloat awScale)
cfnum
=
0
;
cfnum
=
0
;
}
}
LPCWSTR
wName
;
LPCWSTR
wName
=
NULL
;
awtFont
=
new
AwtFont
(
cfnum
,
env
,
font
);
awtFont
=
new
AwtFont
(
cfnum
,
env
,
font
);
...
@@ -1168,7 +1168,7 @@ void AwtFontCache::IncRefCount(HFONT hFont){
...
@@ -1168,7 +1168,7 @@ void AwtFontCache::IncRefCount(HFONT hFont){
}
}
LONG
AwtFontCache
::
IncRefCount
(
Item
*
item
){
LONG
AwtFontCache
::
IncRefCount
(
Item
*
item
){
LONG
newVal
;
LONG
newVal
=
0
;
if
(
NULL
!=
item
){
if
(
NULL
!=
item
){
newVal
=
InterlockedIncrement
((
long
*
)
&
item
->
refCount
);
newVal
=
InterlockedIncrement
((
long
*
)
&
item
->
refCount
);
...
@@ -1177,7 +1177,7 @@ LONG AwtFontCache::IncRefCount(Item* item){
...
@@ -1177,7 +1177,7 @@ LONG AwtFontCache::IncRefCount(Item* item){
}
}
LONG
AwtFontCache
::
DecRefCount
(
Item
*
item
){
LONG
AwtFontCache
::
DecRefCount
(
Item
*
item
){
LONG
newVal
;
LONG
newVal
=
0
;
if
(
NULL
!=
item
){
if
(
NULL
!=
item
){
newVal
=
InterlockedDecrement
((
long
*
)
&
item
->
refCount
);
newVal
=
InterlockedDecrement
((
long
*
)
&
item
->
refCount
);
...
...
src/windows/native/sun/windows/awt_Frame.cpp
浏览文件 @
1758d200
...
@@ -156,7 +156,7 @@ AwtFrame* AwtFrame::Create(jobject self, jobject parent)
...
@@ -156,7 +156,7 @@ AwtFrame* AwtFrame::Create(jobject self, jobject parent)
PDATA
pData
;
PDATA
pData
;
HWND
hwndParent
=
NULL
;
HWND
hwndParent
=
NULL
;
AwtFrame
*
frame
;
AwtFrame
*
frame
=
NULL
;
jclass
cls
=
NULL
;
jclass
cls
=
NULL
;
jclass
inputMethodWindowCls
=
NULL
;
jclass
inputMethodWindowCls
=
NULL
;
jobject
target
=
NULL
;
jobject
target
=
NULL
;
...
@@ -993,7 +993,9 @@ MsgRouting AwtFrame::WmActivate(UINT nState, BOOL fMinimized, HWND opposite)
...
@@ -993,7 +993,9 @@ MsgRouting AwtFrame::WmActivate(UINT nState, BOOL fMinimized, HWND opposite)
AwtComponent
::
SetFocusedWindow
(
GetHWnd
());
AwtComponent
::
SetFocusedWindow
(
GetHWnd
());
}
else
{
}
else
{
if
(
!::
IsWindow
(
AwtWindow
::
GetModalBlocker
(
opposite
)))
{
if
(
::
IsWindow
(
AwtWindow
::
GetModalBlocker
(
opposite
)))
{
return
mrConsume
;
}
else
{
// If deactivation happens because of press on grabbing
// If deactivation happens because of press on grabbing
// window - this is nonsense, since grabbing window is
// window - this is nonsense, since grabbing window is
// assumed to have focus and watch for deactivation. But
// assumed to have focus and watch for deactivation. But
...
...
src/windows/native/sun/windows/awt_Label.cpp
浏览文件 @
1758d200
/*
/*
* Copyright (c) 1996, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
6
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -146,15 +146,16 @@ void AwtLabel::DoPaint(HDC hDC, RECT& r)
...
@@ -146,15 +146,16 @@ void AwtLabel::DoPaint(HDC hDC, RECT& r)
jint
alignment
=
env
->
GetIntField
(
target
,
AwtLabel
::
alignmentID
);
jint
alignment
=
env
->
GetIntField
(
target
,
AwtLabel
::
alignmentID
);
switch
(
alignment
)
{
switch
(
alignment
)
{
case
java_awt_Label_LEFT
:
x
=
r
.
left
+
2
;
break
;
case
java_awt_Label_CENTER
:
case
java_awt_Label_CENTER
:
x
=
(
r
.
left
+
r
.
right
-
size
.
cx
)
/
2
;
x
=
(
r
.
left
+
r
.
right
-
size
.
cx
)
/
2
;
break
;
break
;
case
java_awt_Label_RIGHT
:
case
java_awt_Label_RIGHT
:
x
=
r
.
right
-
2
-
size
.
cx
;
x
=
r
.
right
-
2
-
size
.
cx
;
break
;
break
;
case
java_awt_Label_LEFT
:
default:
x
=
r
.
left
+
2
;
break
;
}
}
/* draw string */
/* draw string */
if
(
isEnabled
())
{
if
(
isEnabled
())
{
...
...
src/windows/native/sun/windows/awt_PrintJob.cpp
浏览文件 @
1758d200
/*
/*
* Copyright (c) 1996, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
6
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -1108,7 +1108,7 @@ Java_sun_awt_windows_WPrinterJob_initPrinter(JNIEnv *env, jobject self) {
...
@@ -1108,7 +1108,7 @@ Java_sun_awt_windows_WPrinterJob_initPrinter(JNIEnv *env, jobject self) {
// check for collation
// check for collation
HGLOBAL
hDevNames
=
AwtPrintControl
::
getPrintHDName
(
env
,
self
);
HGLOBAL
hDevNames
=
AwtPrintControl
::
getPrintHDName
(
env
,
self
);
if
(
hDevNames
!=
NULL
)
{
if
(
hDevNames
!=
NULL
)
{
DWORD
dmFields
;
DWORD
dmFields
=
0
;
DEVNAMES
*
devnames
=
(
DEVNAMES
*
)
::
GlobalLock
(
hDevNames
);
DEVNAMES
*
devnames
=
(
DEVNAMES
*
)
::
GlobalLock
(
hDevNames
);
if
(
devnames
!=
NULL
)
{
if
(
devnames
!=
NULL
)
{
...
...
src/windows/native/sun/windows/awt_TextComponent.cpp
浏览文件 @
1758d200
/*
/*
* Copyright (c) 1996, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
6
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -129,6 +129,7 @@ AwtTextComponent* AwtTextComponent::Create(jobject peer, jobject parent, BOOL is
...
@@ -129,6 +129,7 @@ AwtTextComponent* AwtTextComponent::Create(jobject peer, jobject parent, BOOL is
scroll_style
=
WS_HSCROLL
|
ES_AUTOHSCROLL
|
ES_AUTOVSCROLL
;
scroll_style
=
WS_HSCROLL
|
ES_AUTOHSCROLL
|
ES_AUTOVSCROLL
;
break
;
break
;
case
java_awt_TextArea_SCROLLBARS_BOTH
:
case
java_awt_TextArea_SCROLLBARS_BOTH
:
default:
scroll_style
=
WS_VSCROLL
|
WS_HSCROLL
|
scroll_style
=
WS_VSCROLL
|
WS_HSCROLL
|
ES_AUTOVSCROLL
|
ES_AUTOHSCROLL
;
ES_AUTOVSCROLL
|
ES_AUTOHSCROLL
;
break
;
break
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录