aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/OpenGL_Win32_jawt.c
diff options
context:
space:
mode:
Diffstat (limited to 'CNativeCode/OpenGL_Win32_jawt.c')
-rwxr-xr-xCNativeCode/OpenGL_Win32_jawt.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/CNativeCode/OpenGL_Win32_jawt.c b/CNativeCode/OpenGL_Win32_jawt.c
index c3daae7..59e80ca 100755
--- a/CNativeCode/OpenGL_Win32_jawt.c
+++ b/CNativeCode/OpenGL_Win32_jawt.c
@@ -69,11 +69,23 @@
static jboolean verbose = JNI_FALSE;
+JNIEXPORT jboolean JNICALL Java_gl4java_GLContext_loadJAWT0
+(JNIEnv *env, jclass unused, jstring str)
+{
+ char* chars;
+ jboolean res;
+
+ chars = (*env)->GetStringUTFChars(env, str, NULL);
+ res = jawt_init(chars);
+ (*env)->ReleaseStringUTFChars(env, str, chars);
+ return res;
+}
+
JNIEXPORT jboolean JNICALL
-Java_gl4java_GLContext_useJAWT( JNIEnv *env, jobject obj )
+Java_gl4java_GLContext_useJAWT( JNIEnv *env, jclass unused )
{
(void)env;
- (void)obj;
+ (void)unused;
return JNI_TRUE;
}