summaryrefslogtreecommitdiff
path: root/demos/java/jni/gs_jni/callbacks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/java/jni/gs_jni/callbacks.cpp')
-rw-r--r--demos/java/jni/gs_jni/callbacks.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/demos/java/jni/gs_jni/callbacks.cpp b/demos/java/jni/gs_jni/callbacks.cpp
index 9a2a6fe0e..7826b3289 100644
--- a/demos/java/jni/gs_jni/callbacks.cpp
+++ b/demos/java/jni/gs_jni/callbacks.cpp
@@ -350,7 +350,18 @@ int callbacks::display::displayRectangleRequestFunction(void *handle, void *devi
Reference hRef = Reference(g_env, toWrapperType(g_env, (jint)*h));
code = callIntMethod(g_env, g_displayCallback, "onDisplayRectangleRequest", DISPLAY_RECTANGLE_REQUEST,
- (jlong)handle, (jlong)device, memoryRef, oxRef, oyRef, rasterRef, planeRasterRef, xRef, yRef, wRef, hRef);
+ (jlong)handle,
+ (jlong)device,
+ memoryRef.object(),
+ oxRef.object(),
+ oyRef.object(),
+ rasterRef.object(),
+ planeRasterRef.object(),
+ xRef.object(),
+ yRef.object(),
+ wRef.object(),
+ hRef.object()
+ );
*memory = (void *)memoryRef.longValue();
*ox = oxRef.intValue();