diff --git a/src/native/linux/org_lwjgl_input_Cursor.c b/src/native/linux/org_lwjgl_input_Cursor.c index b228cd99..f92a1a81 100644 --- a/src/native/linux/org_lwjgl_input_Cursor.c +++ b/src/native/linux/org_lwjgl_input_Cursor.c @@ -48,7 +48,7 @@ #include "common_tools.h" JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay_nCreateCursor - (JNIEnv *env, jclass clazz, jobject handle_buffer, jint width, jint height, jint x_hotspot, jint y_hotspot, jint num_images, jobject image_buffer, jint images_offset, jobject delay_buffer, jint delays_offset) + (JNIEnv *env, jobject this, jobject handle_buffer, jint width, jint height, jint x_hotspot, jint y_hotspot, jint num_images, jobject image_buffer, jint images_offset, jobject delay_buffer, jint delays_offset) { if ((*env)->GetDirectBufferCapacity(env, handle_buffer) < sizeof(Cursor)) { throwException(env, "Handle buffer not large enough"); @@ -85,7 +85,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay_nCreateCursor } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay__destroyCursor - (JNIEnv *env, jclass clazz, jobject cursor_handle_buffer) + (JNIEnv *env, jobject this, jobject cursor_handle_buffer) { Cursor *cursor = (Cursor *)(*env)->GetDirectBufferAddress(env, cursor_handle_buffer); // Cursor cursor = (Cursor)cursor_handle; diff --git a/src/native/win32/org_lwjgl_input_Cursor.cpp b/src/native/win32/org_lwjgl_input_Cursor.cpp index cf83566e..c7ef28d3 100755 --- a/src/native/win32/org_lwjgl_input_Cursor.cpp +++ b/src/native/win32/org_lwjgl_input_Cursor.cpp @@ -45,7 +45,7 @@ #include "common_tools.h" JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Win32Display_nCreateCursor - (JNIEnv *env, jclass clazz, jobject handle_buffer, jint width, jint height, jint x_hotspot, jint y_hotspot, jint num_images, jobject image_buffer, jint images_offset, jobject delay_buffer, jint delays_offset) + (JNIEnv *env, jobject self, jobject handle_buffer, jint width, jint height, jint x_hotspot, jint y_hotspot, jint num_images, jobject image_buffer, jint images_offset, jobject delay_buffer, jint delays_offset) { if (env->GetDirectBufferCapacity(handle_buffer) < sizeof(HCURSOR)) { throwException(env, "Handle buffer not large enough"); @@ -146,7 +146,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Win32Display_nCreateCursor * Signature: (I)V */ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Win32Display_destroyCursor - (JNIEnv *env, jclass clazz, jobject handle_buffer) + (JNIEnv *env, jobject self, jobject handle_buffer) { // HCURSOR cursor = (HCURSOR)cursor_handle; HCURSOR *cursor_handle = (HCURSOR *)env->GetDirectBufferAddress(handle_buffer);