aboutsummaryrefslogtreecommitdiffstats
path: root/gl4java/system
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-02-14 07:38:31 +0000
committerSven Gothel <[email protected]>2001-02-14 07:38:31 +0000
commitaaad1aab82e57bc369e26f55a25b24fb77d9fd45 (patch)
tree78051e866c0f313ff5fdc48bd494f7e6eb75ec74 /gl4java/system
parentf36d363033840c84c76bf5285a252846aa9a7e96 (diff)
2.5.2.0 test2rel-2-5-2-0-test2
Diffstat (limited to 'gl4java/system')
-rw-r--r--gl4java/system/GljMSJDirect.java16
1 files changed, 10 insertions, 6 deletions
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);
}