summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2010-12-23 20:45:42 +0000
committerSilenio Quarti <silenio>2010-12-23 20:45:42 +0000
commitd40cbb892cec81ea2b2e87a9b6ae9112c418cd1a (patch)
tree26ac860f49466f458c6b1997489c2d0df73eebb1 /bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c
parent084cf17c9807ebb1d7d598b5061cf44242a3ec5e (diff)
downloadeclipse.platform.swt-d40cbb892cec81ea2b2e87a9b6ae9112c418cd1a.tar.gz
eclipse.platform.swt-d40cbb892cec81ea2b2e87a9b6ae9112c418cd1a.tar.xz
eclipse.platform.swt-d40cbb892cec81ea2b2e87a9b6ae9112c418cd1a.zip
BugÊ294929 - [Widgets] Line numbers do not update when Eclipse is on a secondary monitor (investigating solution)
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c
index 08d6923798..864eb5d5d6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c
@@ -2880,6 +2880,26 @@ fail:
}
#endif
+#ifndef NO_CGImageCreateCopy
+JNIEXPORT jint JNICALL OS_NATIVE(CGImageCreateCopy)
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ jint rc = 0;
+ OS_NATIVE_ENTER(env, that, CGImageCreateCopy_FUNC);
+/*
+ rc = (jint)CGImageCreateCopy(arg0);
+*/
+ {
+ LOAD_FUNCTION(fp, CGImageCreateCopy)
+ if (fp) {
+ rc = (jint)((jint (CALLING_CONVENTION*)(jint))fp)(arg0);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, CGImageCreateCopy_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_CGImageCreateWithImageInRect
JNIEXPORT jint JNICALL OS_NATIVE(CGImageCreateWithImageInRect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)