From aaad1aab82e57bc369e26f55a25b24fb77d9fd45 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 14 Feb 2001 07:38:31 +0000 Subject: 2.5.2.0 test2 --- gl4java/system/GljMSJDirect.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'gl4java/system/GljMSJDirect.java') diff --git a/gl4java/system/GljMSJDirect.java b/gl4java/system/GljMSJDirect.java index ef5986c..32bcd84 100644 --- a/gl4java/system/GljMSJDirect.java +++ b/gl4java/system/GljMSJDirect.java @@ -22,6 +22,10 @@ package gl4java.system; * This is the same for gl4java.GLUFuncMSJDirect * and gl4java.GLFuncMSJDirect ! * + * + * Because the JDirect cannot handle long-type argument mapping, + * we do convert them here to int-type :-( + * * @see gl4java.GLContext * @version 1.00 * @author Ron Cemer, Sven Goethel @@ -47,31 +51,31 @@ public class GljMSJDirect extends Object int x, int y, int width, int height) - { return createOGLWindowNativeJDirect(hwndParent, x,y, width, height); } + { return (long) createOGLWindowNativeJDirect((int)hwndParent, x,y, width, height); } /** * @dll.import("GL4JavaGljMSJDirect", auto) */ - private static native long createOGLWindowNativeJDirect(long hwndParent, + private static native int createOGLWindowNativeJDirect(int hwndParent, int x, int y, int width, int height); public static final void destroyOGLWindowNative(long hdc) - { destroyOGLWindowNativeJDirect(hdc); } + { destroyOGLWindowNativeJDirect((int)hdc); } /** * @dll.import("GL4JavaGljMSJDirect") */ - private static native void destroyOGLWindowNativeJDirect(long hdc); + private static native void destroyOGLWindowNativeJDirect(int hdc); public static final void moveOGLWindowNative(long hdc, int x, int y, int width, int height) - { moveOGLWindowNativeJDirect(hdc, x, y, width, height); } + { moveOGLWindowNativeJDirect((int)hdc, x, y, width, height); } /** * @dll.import("GL4JavaGljMSJDirect") */ - private static native void moveOGLWindowNativeJDirect(long hdc, int x, int y, int width, int height); + private static native void moveOGLWindowNativeJDirect(int hdc, int x, int y, int width, int height); } -- cgit v1.2.3