equal
deleted
inserted
replaced
1496 #else |
1496 #else |
1497 AwtGraphicsConfigDataPtr aData = (AwtGraphicsConfigDataPtr)jlong_to_ptr(configData); |
1497 AwtGraphicsConfigDataPtr aData = (AwtGraphicsConfigDataPtr)jlong_to_ptr(configData); |
1498 if (aData == NULL) { |
1498 if (aData == NULL) { |
1499 return JNI_FALSE; |
1499 return JNI_FALSE; |
1500 } |
1500 } |
1501 return (jboolean)aData->isTranslucencySupported; |
1501 return aData->isTranslucencySupported ? JNI_TRUE : JNI_FALSE; |
1502 #endif |
1502 #endif |
1503 } |
1503 } |
1504 |
1504 |
1505 /* |
1505 /* |
1506 * Class: sun_awt_X11GraphicsDevice |
1506 * Class: sun_awt_X11GraphicsDevice |
1576 JNIEXPORT jboolean JNICALL |
1576 JNIEXPORT jboolean JNICALL |
1577 Java_sun_awt_X11GraphicsEnvironment_pRunningXinerama(JNIEnv *env, |
1577 Java_sun_awt_X11GraphicsEnvironment_pRunningXinerama(JNIEnv *env, |
1578 jobject this) |
1578 jobject this) |
1579 { |
1579 { |
1580 #ifdef HEADLESS |
1580 #ifdef HEADLESS |
1581 return false; |
1581 return JNI_FALSE; |
1582 #else |
1582 #else |
1583 return usingXinerama; |
1583 return usingXinerama ? JNI_TRUE : JNI_FALSE; |
1584 #endif /* HEADLESS */ |
1584 #endif /* HEADLESS */ |
1585 } |
1585 } |
1586 |
1586 |
1587 /* |
1587 /* |
1588 * Can return NULL. |
1588 * Can return NULL. |