mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 22:26:56 -04:00
Update awt_GraphicsEnv.c
This commit is contained in:
parent
120d727e28
commit
a7848f938e
@ -165,8 +165,9 @@ JNIEXPORT jint JNICALL Java_sun_awt_X11GraphicsConfig_getNumColors(JNIEnv *env,
|
||||
|
||||
JNIEXPORT void JNICALL Java_sun_awt_X11GraphicsConfig_init(JNIEnv *env, jobject this, jint visualNum, jint screen) {
|
||||
// Android: 16bits pixel
|
||||
jclass cls = (*env)->GetObjectClass(env, this);
|
||||
jfieldID bitsPerPixel = (*env)->GetFieldID(env, cls, "bitsPerPixel", "I");
|
||||
(*env)->SetIntField(env, (*env)->GetObjectClass(env, this), bitsPerPixel,
|
||||
(*env)->SetIntField(env, cls, bitsPerPixel,
|
||||
(jint) 16 /* tempImage->bits_per_pixel */);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user