8064699: [parfait] JNI primitive type mismatch in jdk/src/java/desktop/unix/native/libawt_xawt/awt/awt_GraphicsEnv.c

Reviewed-by: alexsch, serb
This commit is contained in:
Alexander Zvegintsev 2014-12-02 12:48:49 +03:00
parent 4d25e9dfce
commit b11667b680

View File

@ -1498,7 +1498,7 @@ Java_sun_awt_X11GraphicsConfig_isTranslucencyCapable
if (aData == NULL) { if (aData == NULL) {
return JNI_FALSE; return JNI_FALSE;
} }
return (jboolean)aData->isTranslucencySupported; return aData->isTranslucencySupported ? JNI_TRUE : JNI_FALSE;
#endif #endif
} }
@ -1578,9 +1578,9 @@ Java_sun_awt_X11GraphicsEnvironment_pRunningXinerama(JNIEnv *env,
jobject this) jobject this)
{ {
#ifdef HEADLESS #ifdef HEADLESS
return false; return JNI_FALSE;
#else #else
return usingXinerama; return usingXinerama ? JNI_TRUE : JNI_FALSE;
#endif /* HEADLESS */ #endif /* HEADLESS */
} }