mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 09:07:48 -04:00
[awt_xawt] Stub the whole x lib
This commit is contained in:
parent
91f49a0619
commit
01839973df
@ -44,6 +44,7 @@ LOCAL_SRC_FILES := \
|
|||||||
awt_UNIXToolkit.c \
|
awt_UNIXToolkit.c \
|
||||||
awt_Desktop.c \
|
awt_Desktop.c \
|
||||||
awt_Taskbar.c \
|
awt_Taskbar.c \
|
||||||
|
XlibWrapper.c \
|
||||||
XToolkit.c
|
XToolkit.c
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
|
@ -330,23 +330,19 @@ Java_java_awt_KeyboardFocusManager_initIDs
|
|||||||
*/
|
*/
|
||||||
JNIEXPORT jstring JNICALL Java_sun_awt_X11_XToolkit_getEnv
|
JNIEXPORT jstring JNICALL Java_sun_awt_X11_XToolkit_getEnv
|
||||||
(JNIEnv *env , jclass clazz, jstring key) {
|
(JNIEnv *env , jclass clazz, jstring key) {
|
||||||
/*
|
|
||||||
char *ptr = NULL;
|
char *ptr = NULL;
|
||||||
const char *keystr = NULL;
|
const char *keystr = NULL;
|
||||||
jstring ret = NULL;
|
jstring ret = NULL;
|
||||||
|
|
||||||
keystr = JNU_GetStringPlatformChars(env, key, NULL);
|
keystr = (*env)->GetStringUTFChars(env, key, NULL);
|
||||||
if (keystr) {
|
if (keystr) {
|
||||||
ptr = getenv(keystr);
|
ptr = getenv(keystr);
|
||||||
if (ptr) {
|
if (ptr) {
|
||||||
ret = JNU_NewStringPlatform(env, (const char *) ptr);
|
ret = (*env)->NewStringUTF(env, (const char *) ptr);
|
||||||
}
|
}
|
||||||
JNU_ReleaseStringPlatformChars(env, key, (const char*)keystr);
|
(*env)->ReleaseStringUTFChars(env, key, (const char*)keystr);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
*/
|
|
||||||
|
|
||||||
return (*env)->NewStringUTF(env, getenv(keystr));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
1556
app/src/main/jni/awt_xawt/XlibWrapper.c
Normal file
1556
app/src/main/jni/awt_xawt/XlibWrapper.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -28,12 +28,3 @@ JNIEXPORT void JNICALL Java_sun_java2d_x11_X11SurfaceData_XSetCopyMode(JNIEnv *e
|
|||||||
JNIEXPORT void JNICALL Java_sun_java2d_x11_X11SurfaceData_XSetXorMode(JNIEnv *env, jclass cls, jlong xgv) {}
|
JNIEXPORT void JNICALL Java_sun_java2d_x11_X11SurfaceData_XSetXorMode(JNIEnv *env, jclass cls, jlong xgv) {}
|
||||||
JNIEXPORT void JNICALL Java_sun_java2d_x11_X11SurfaceData_XSetForeground(JNIEnv *env, jclass cls, jlong xgc, jint pixel) {}
|
JNIEXPORT void JNICALL Java_sun_java2d_x11_X11SurfaceData_XSetForeground(JNIEnv *env, jclass cls, jlong xgc, jint pixel) {}
|
||||||
|
|
||||||
JNIEXPORT jint JNICALL
|
|
||||||
Java_sun_awt_X11_XlibWrapper_XKeysymToKeycode(JNIEnv *env, jclass clazz,
|
|
||||||
jlong display, jlong keysym) {
|
|
||||||
// AWT_CHECK_HAVE_LOCK_RETURN(0);
|
|
||||||
// return XKeysymToKeycode((Display*) jlong_to_ptr(display), (KeySym)keysym);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user