Windows: 64bit compilation fixes

This commit is contained in:
Elias Naur 2007-12-04 10:58:10 +00:00
parent 9d7eb11600
commit e03ee5d4d7
2 changed files with 11 additions and 5 deletions

View file

@ -42,9 +42,15 @@
#define _LWJGL_WINDOW_H_INCLUDED_
#define WIN32_LEAN_AND_MEAN
#define _WIN32_WINDOWS 0x0410
#define WINVER 0x0410
#define _WIN32_WINNT 0x0400
#ifndef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0410
#endif
#ifndef WINVER
#define WINVER 0x0410
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif
#include <windows.h>
#include <jni.h>

View file

@ -520,10 +520,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_nSetNativeCursor
if (handle_buffer != NULL) {
cursor_handle = (HCURSOR *)(*env)->GetDirectBufferAddress(env, handle_buffer);
cursor = *cursor_handle;
SetClassLongPtr(hwnd, GCL_HCURSOR, (LONG_PTR)cursor);
SetClassLongPtr(hwnd, GCLP_HCURSOR, (LONG_PTR)cursor);
SetCursor(cursor);
} else {
SetClassLongPtr(hwnd, GCL_HCURSOR, (LONG_PTR)NULL);
SetClassLongPtr(hwnd, GCLP_HCURSOR, (LONG_PTR)NULL);
SetCursor(LoadCursor(NULL, IDC_ARROW));
}
}