summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-06-12 12:09:29 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-06-18 16:07:11 -0400
commit4df24be727bf7df22d7972cb27d4cc6882d010fa (patch)
tree3b85cd0ea25790d794a739f05bfd3cecebc90c3c /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
parentb5361ce6534deeabbd37381e365154168c5e54f4 (diff)
downloadeclipse.platform.swt-4df24be727bf7df22d7972cb27d4cc6882d010fa.tar.gz
eclipse.platform.swt-4df24be727bf7df22d7972cb27d4cc6882d010fa.tar.xz
eclipse.platform.swt-4df24be727bf7df22d7972cb27d4cc6882d010fa.zip
Make gdk_draw_image dynamic
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
index 31fbf4bae1..3bf70f695e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
@@ -5300,7 +5300,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1draw_1image)
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8)
{
OS_NATIVE_ENTER(env, that, _1gdk_1draw_1image_FUNC);
- gdk_draw_image((GdkDrawable *)arg0, (GdkGC *)arg1, (GdkImage *)arg2, arg3, arg4, arg5, arg6, arg7, arg8);
+/*
+ gdk_draw_image(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
+*/
+ {
+ OS_LOAD_FUNCTION(fp, gdk_draw_image)
+ if (fp) {
+ ((void (CALLING_CONVENTION*)(jintLong, jintLong, jintLong, jint, jint, jint, jint, jint, jint))fp)(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
+ }
+ }
OS_NATIVE_EXIT(env, that, _1gdk_1draw_1image_FUNC);
}
#endif