提交 3604fe3c 编写于 作者: P prr

8014883: java.awt.container.add(component comp object constraints) doesn't...

8014883: java.awt.container.add(component comp object constraints) doesn't work as expected on some linux platforms
Reviewed-by: jgodinez
上级 d059d247
...@@ -798,6 +798,16 @@ ifeq ($(OPENJDK_TARGET_OS),solaris) ...@@ -798,6 +798,16 @@ ifeq ($(OPENJDK_TARGET_OS),solaris)
LIBAWT_XAWT_CFLAGS += -DFUNCPROTO=15 LIBAWT_XAWT_CFLAGS += -DFUNCPROTO=15
endif endif
ifeq ($(OPENJDK_TARGET_OS),linux)
ifndef OPENJDK
include $(JDK_TOPDIR)/make/closed/xawt.gmk
endif
ifeq ($(DISABLE_XRENDER),true)
LIBAWT_XAWT_CFLAGS += -DDISABLE_XRENDER_BY_DEFAULT=true
endif
endif
ifeq ($(MILESTONE),internal) ifeq ($(MILESTONE),internal)
LIBAWT_XAWT_CFLAGS += -DINTERNAL_BUILD LIBAWT_XAWT_CFLAGS += -DINTERNAL_BUILD
endif endif
......
...@@ -269,6 +269,13 @@ Java_sun_awt_X11GraphicsEnvironment_initXRender ...@@ -269,6 +269,13 @@ Java_sun_awt_X11GraphicsEnvironment_initXRender
static jboolean firstTime = JNI_TRUE; static jboolean firstTime = JNI_TRUE;
if (firstTime) { if (firstTime) {
#ifdef DISABLE_XRENDER_BY_DEFAULT
if (verbose == JNI_FALSE) {
xrenderAvailable = JNI_FALSE;
firstTime = JNI_FALSE;
return xrenderAvailable;
}
#endif
AWT_LOCK(); AWT_LOCK();
xrenderAvailable = IsXRenderAvailable(verbose); xrenderAvailable = IsXRenderAvailable(verbose);
AWT_UNLOCK(); AWT_UNLOCK();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册