aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-22 12:47:58 +0100
committerSven Gothel <[email protected]>2010-11-22 12:47:58 +0100
commit350b35a202fcc268b9d732b305418b2e76746501 (patch)
tree60055b3363472260fe6c0b907e9902fd8f6053d2
parentf3169b6cfb8d8b1ba741ad9dcef82ddde64e108a (diff)
NativeWindow: Fix XSynchronize gluegen
-rw-r--r--make/stub_includes/x11/window-lib.c2
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/impl/x11/X11Util.java4
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);
}