diff --git a/src/main/resources/liblwjglLegacyCursorsX11.c b/src/main/resources/liblwjglLegacyCursorsX11.c index 4756d74..ecde82c 100644 --- a/src/main/resources/liblwjglLegacyCursorsX11.c +++ b/src/main/resources/liblwjglLegacyCursorsX11.c @@ -14,7 +14,7 @@ const char *LOOKUP[] = { "not-allowed" }; -JNIEXPORT jlong JNICALL Java_io_github_solclient_client_util_cursors_X11SystemCursors_nGetDefaultCursorHandle( +JNIEXPORT jlong JNICALL Java_net_silentclient_client_utils_cursors_X11SystemCursors_nGetDefaultCursorHandle( JNIEnv *env, jclass unused, jlong display, jbyte cursor) { if (cursor < 0 || cursor >= sizeof(LOOKUP) / sizeof(*LOOKUP)) cursor = 0; diff --git a/src/main/resources/lwjglLegacyCursorsWin32.c b/src/main/resources/lwjglLegacyCursorsWin32.c deleted file mode 100644 index 4a77e66..0000000 --- a/src/main/resources/lwjglLegacyCursorsWin32.c +++ /dev/null @@ -1,36 +0,0 @@ -#include -#include -#include - -JNIEXPORT jlong JNICALL Java_io_github_solclient_client_util_cursors_Win32SystemCursors_nGetDefaultCursorHandle( - JNIEnv *env, jclass unused, jbyte cursor) { - switch (cursor) { - case 0: - default: - return (jlong) LoadCursor(NULL, IDC_ARROW); - case 1: - return (jlong) LoadCursor(NULL, IDC_IBEAM); - case 2: - return (jlong) LoadCursor(NULL, IDC_CROSS); - case 3: - return (jlong) LoadCursor(NULL, IDC_HAND); - case 4: - return (jlong) LoadCursor(NULL, IDC_SIZEWE); - case 5: - return (jlong) LoadCursor(NULL, IDC_SIZENS); - case 6: - return (jlong) LoadCursor(NULL, IDC_SIZENWSE); - case 7: - return (jlong) LoadCursor(NULL, IDC_SIZENESW); - case 8: - return (jlong) LoadCursor(NULL, IDC_SIZEALL); - case 9: - return (jlong) LoadCursor(NULL, IDC_NO); - } -} - -JNIEXPORT void JNICALL Java_io_github_solclient_client_util_cursors_Win32SystemCursors_nSetCursor( - JNIEnv *env, jclass unused, jlong hwnd, jlong cursor) { - SetClassLongPtr((HWND) hwnd, GCLP_HCURSOR, NULL); - SetCursor((HCURSOR) cursor); -} diff --git a/src/main/resources/lwjglLegacyCursorsWin32.dll b/src/main/resources/lwjglLegacyCursorsWin32.dll index 57efb03..688bde1 100644 Binary files a/src/main/resources/lwjglLegacyCursorsWin32.dll and b/src/main/resources/lwjglLegacyCursorsWin32.dll differ