From 350b35a202fcc268b9d732b305418b2e76746501 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 22 Nov 2010 12:47:58 +0100 Subject: NativeWindow: Fix XSynchronize gluegen --- make/stub_includes/x11/window-lib.c | 2 +- .../classes/com/jogamp/nativewindow/impl/x11/X11Util.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/make/stub_includes/x11/window-lib.c b/make/stub_includes/x11/window-lib.c index 9affa8427..5f33572bb 100644 --- a/make/stub_includes/x11/window-lib.c +++ b/make/stub_includes/x11/window-lib.c @@ -7,7 +7,7 @@ #define _Xconst const #endif /* _Xconst */ -extern Bool XSynchronize(Display *display, Bool onoff); +extern intptr_t XSynchronize(Display *display, Bool onoff); extern int XFlush(Display *display); extern int XSync(Display *display, Bool discard); diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/impl/x11/X11Util.java b/src/nativewindow/classes/com/jogamp/nativewindow/impl/x11/X11Util.java index bd76908a1..ecb4a7a16 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/impl/x11/X11Util.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/impl/x11/X11Util.java @@ -419,10 +419,10 @@ public class X11Util { } } - public static boolean XSynchronize(long display, boolean onoff) { + public static void XSynchronize(long display, boolean onoff) { lockDefaultToolkit(display); try { - return X11Lib.XSynchronize(display, onoff); + X11Lib.XSynchronize(display, onoff); } finally { unlockDefaultToolkit(display); } -- cgit v1.2.3