Win32: Fixed 64 bit warnings in Mouse.c

This commit is contained in:
Elias Naur 2005-04-12 09:53:18 +00:00
parent 54c5f34c76
commit 815ce87e2e
1 changed files with 2 additions and 2 deletions

View File

@ -336,10 +336,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Win32Display_setNativeCursor
if (handle_buffer != NULL) {
cursor_handle = (HCURSOR *)(*env)->GetDirectBufferAddress(env, handle_buffer);
cursor = *cursor_handle;
SetClassLong(getCurrentHWND(), GCL_HCURSOR, (LONG)cursor);
SetClassLongPtr(getCurrentHWND(), GCL_HCURSOR, (LONG_PTR)cursor);
SetCursor(cursor);
} else {
SetClassLong(getCurrentHWND(), GCL_HCURSOR, (LONG)NULL);
SetClassLongPtr(getCurrentHWND(), GCL_HCURSOR, (LONG_PTR)NULL);
SetCursor(LoadCursor(NULL, IDC_ARROW));
}
}