Have found some further code in MX6AcceleratedScreen.c.

//Vivante specials
static EGLNativeDisplayType (*wr_fbGetDisplayByIndex)(int DisplayIndex);
static EGLNativeWindowType (*wr_fbCreateWindow)(EGLNativeDisplayType Display, int X, int Y, int Width, int Height);

JNIEXPORT jlong JNICALL Java_com_sun_glass_ui_monocle_MX6AcceleratedScreen__1platformGetNativeDisplay
    (JNIEnv *env, jobject obj, jlong methodHandle) {
    EGLNativeDisplayType cachedDisplay = NULL;

    if (cachedDisplay == NULL) {
        wr_fbGetDisplayByIndex = asPtr(methodHandle);
        cachedDisplay = wr_fbGetDisplayByIndex(0);
    }
    return asJLong(cachedDisplay);
}

Now to find out why this fails. Maybe fbGetDisplayByIndex should use another value?

Maurice.

Reply via email to