From 600ebcac40ee2d13947701fffc51ea93887db89c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 10 Oct 2011 08:05:26 +0200 Subject: NEWT Pointer Feature: Add Windows impl. ; Fix test (warp action) ; Minor cleanup in X11 --- src/newt/native/X11Window.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/newt/native/X11Window.c') diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c index 2038237cd..c7b271188 100644 --- a/src/newt/native/X11Window.c +++ b/src/newt/native/X11Window.c @@ -1847,7 +1847,7 @@ JNIEXPORT void JNICALL Java_jogamp_newt_driver_x11_X11Window_requestFocus0 * Signature: (JJ)J */ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_x11_X11Window_getParentWindow0 - (JNIEnv *env, jobject obj, jlong display, jlong window) + (JNIEnv *env, jclass clazz, jlong display, jlong window) { return (jlong) NewtWindows_getParent ((Display *) (intptr_t) display, (Window)window); } @@ -1947,7 +1947,6 @@ JNIEXPORT jboolean JNICALL Java_jogamp_newt_driver_x11_X11Window_confinePointer0 { Display * dpy = (Display *) (intptr_t) display; Window w = (Window)window; - int res; DBG_PRINT( "X11: confinePointer0: %d\n", confine); @@ -1964,18 +1963,16 @@ JNIEXPORT jboolean JNICALL Java_jogamp_newt_driver_x11_X11Window_confinePointer0 /* * Class: Java_jogamp_newt_driver_x11_X11Window * Method: warpPointer0 - * Signature: (JJII)Z + * Signature: (JJII)V */ -JNIEXPORT jboolean JNICALL Java_jogamp_newt_driver_x11_X11Window_warpPointer0 +JNIEXPORT void JNICALL Java_jogamp_newt_driver_x11_X11Window_warpPointer0 (JNIEnv *env, jclass clazz, jlong display, jlong window, jint x, jint y) { Display * dpy = (Display *) (intptr_t) display; Window w = (Window)window; - int res; DBG_PRINT( "X11: warpPointer0: %d/%d\n", x, y); XWarpPointer(dpy, None, w, 0, 0, 0, 0, x, y); - return JNI_TRUE; } -- cgit v1.2.3