Windows: Removed an unused parameter from WindowsDisplay.clipCursor
This commit is contained in:
parent
436cd2e39c
commit
8bb3e5aec0
|
@ -161,7 +161,7 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
static void resetCursorClipping() {
|
||||
if (cursor_clipped) {
|
||||
try {
|
||||
clipCursor(0, null);
|
||||
clipCursor(null);
|
||||
} catch (LWJGLException e) {
|
||||
LWJGLUtil.log("Failed to reset cursor clipping: " + e);
|
||||
}
|
||||
|
@ -192,9 +192,9 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
cursor_clipped = true;
|
||||
getGlobalClientRect(hwnd, rect);
|
||||
rect.copyToBuffer(rect_buffer);
|
||||
clipCursor(hwnd, rect_buffer);
|
||||
clipCursor(rect_buffer);
|
||||
}
|
||||
private static native void clipCursor(long hwnd, IntBuffer rect) throws LWJGLException;
|
||||
private static native void clipCursor(IntBuffer rect) throws LWJGLException;
|
||||
|
||||
public void switchDisplayMode(DisplayMode mode) throws LWJGLException {
|
||||
nSwitchDisplayMode(mode);
|
||||
|
|
|
@ -257,8 +257,7 @@ static void copyRectToBuffer(JNIEnv *env, RECT *rect, jobject buffer_handle) {
|
|||
buffer[3] = rect->right;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_clipCursor(JNIEnv *env, jclass unused, jlong hwnd_ptr, jobject handle_buffer) {
|
||||
HWND hwnd = (HWND)(INT_PTR)hwnd_ptr;
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_clipCursor(JNIEnv *env, jclass unused, jobject handle_buffer) {
|
||||
RECT clip_rect;
|
||||
LPRECT clip_rect_ptr;
|
||||
if (handle_buffer != NULL) {
|
||||
|
|
Loading…
Reference in New Issue