You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl-jni: Bitmap: fix nativeCopyPixelsToBuffer
This commit is contained in:
@@ -155,6 +155,6 @@ JNIEXPORT void JNICALL Java_android_graphics_Bitmap_nativeCopyPixelsToBuffer(JNI
|
||||
jarray array_ref;
|
||||
jbyte *array;
|
||||
uint8_t *pixels = get_nio_buffer(env, buffer, &array_ref, &array);
|
||||
memcpy(pixels, pixbuf, pixbuf_size);
|
||||
memcpy(pixels, gdk_pixbuf_get_pixels(pixbuf), pixbuf_size);
|
||||
release_nio_buffer(env, array_ref, array);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user