From dbda3476d1f78804bc5cf21d83bf088e2e633fde Mon Sep 17 00:00:00 2001 From: Christophe Cornu Date: Tue, 13 May 2003 20:04:03 +0000 Subject: multimonitor --- .../Eclipse SWT PI/photon/library/swt.c | 28 +++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/photon') diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/swt.c b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/swt.c index b37478d797..351e83862e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/swt.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/swt.c @@ -4173,7 +4173,33 @@ JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhInputGroup return (jint) PhInputGroup ((PhEvent_t *) event); } - + +#ifndef NO_PhQueryRids +JNIEXPORT jint JNICALL Java_org_eclipse_swt_internal_photon_OS_PhQueryRids + (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jobject arg6, jintArray arg7, jint arg8) +{ + DECL_GLOB(pGlob) + PhRect_t _arg6, *lparg6=NULL; + jint *lparg7=NULL; + jint rc; + + DEBUG_CALL("PhQueryRids\n") + + if (arg6) { + lparg6 = &_arg6; + cachePhRect_tFids(env, arg6, &PGLOB(PhRect_tFc)); + getPhRect_tFields(env, arg6, lparg6, &PGLOB(PhRect_tFc)); + } + if (arg7) lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL); + rc = (jint)PhQueryRids(arg0, arg1, arg2, arg3, arg4, (PhRid_t)arg5, (PhRect_t*)lparg6, (PhRid_t *)lparg7, arg8); + if (arg6) { + setPhRect_tFields(env, arg6, lparg6, &PGLOB(PhRect_tFc)); + } + if (arg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); + return rc; +} +#endif + /* * Class: org_eclipse_swt_internal_photon_OS * Method: PtContainer -- cgit v1.2.3