Windows: Removed an unused parameter from WindowsDisplay.clipCursor

This commit is contained in:
Elias Naur 2007-07-28 20:46:17 +00:00
parent 436cd2e39c
commit 8bb3e5aec0
2 changed files with 4 additions and 5 deletions

View File

@ -161,7 +161,7 @@ final class WindowsDisplay implements DisplayImplementation {
static void resetCursorClipping() { static void resetCursorClipping() {
if (cursor_clipped) { if (cursor_clipped) {
try { try {
clipCursor(0, null); clipCursor(null);
} catch (LWJGLException e) { } catch (LWJGLException e) {
LWJGLUtil.log("Failed to reset cursor clipping: " + e); LWJGLUtil.log("Failed to reset cursor clipping: " + e);
} }
@ -192,9 +192,9 @@ final class WindowsDisplay implements DisplayImplementation {
cursor_clipped = true; cursor_clipped = true;
getGlobalClientRect(hwnd, rect); getGlobalClientRect(hwnd, rect);
rect.copyToBuffer(rect_buffer); 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 { public void switchDisplayMode(DisplayMode mode) throws LWJGLException {
nSwitchDisplayMode(mode); nSwitchDisplayMode(mode);

View File

@ -257,8 +257,7 @@ static void copyRectToBuffer(JNIEnv *env, RECT *rect, jobject buffer_handle) {
buffer[3] = rect->right; buffer[3] = rect->right;
} }
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_clipCursor(JNIEnv *env, jclass unused, jlong hwnd_ptr, jobject handle_buffer) { JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsDisplay_clipCursor(JNIEnv *env, jclass unused, jobject handle_buffer) {
HWND hwnd = (HWND)(INT_PTR)hwnd_ptr;
RECT clip_rect; RECT clip_rect;
LPRECT clip_rect_ptr; LPRECT clip_rect_ptr;
if (handle_buffer != NULL) { if (handle_buffer != NULL) {