diff options
author | Anatoly Spektor | 2012-10-16 15:28:51 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2012-10-16 22:29:33 +0000 |
commit | df55805e4a74ab0fc8f545a1792d755c95a4e419 (patch) | |
tree | fc33befb41894c3cb2cadeb9d29d49a63a4a85b8 | |
parent | abdaf1530d41faa588e7d35f314248f593b64f7b (diff) | |
download | eclipse.platform.swt-df55805e4a74ab0fc8f545a1792d755c95a4e419.tar.gz eclipse.platform.swt-df55805e4a74ab0fc8f545a1792d755c95a4e419.tar.xz eclipse.platform.swt-df55805e4a74ab0fc8f545a1792d755c95a4e419.zip |
Make gdk_pixbuf_render_pixmap_and_mask dynamic
3 files changed, 11 insertions, 6 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 0cfbb1cbb1..f052157f3c 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 @@ -6162,7 +6162,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1pixbuf_1render_1pixmap_1and_1mask) OS_NATIVE_ENTER(env, that, _1gdk_1pixbuf_1render_1pixmap_1and_1mask_FUNC); if (arg1) if ((lparg1 = (*env)->GetIntLongArrayElements(env, arg1, NULL)) == NULL) goto fail; if (arg2) if ((lparg2 = (*env)->GetIntLongArrayElements(env, arg2, NULL)) == NULL) goto fail; - gdk_pixbuf_render_pixmap_and_mask((GdkPixbuf *)arg0, (GdkDrawable **)lparg1, (GdkBitmap **)lparg2, arg3); +/* + gdk_pixbuf_render_pixmap_and_mask(arg0, lparg1, lparg2, arg3); +*/ + { + OS_LOAD_FUNCTION(fp, gdk_pixbuf_render_pixmap_and_mask) + if (fp) { + ((void (CALLING_CONVENTION*)(jintLong, jintLong *, jintLong *, jint))fp)(arg0, lparg1, lparg2, arg3); + } + } fail: if (arg2 && lparg2) (*env)->ReleaseIntLongArrayElements(env, arg2, lparg2, 0); if (arg1 && lparg1) (*env)->ReleaseIntLongArrayElements(env, arg1, lparg1, 0); diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h index 6e7d750dfa..491675573e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h @@ -210,6 +210,7 @@ #define gdk_gc_set_values_LIB LIB_GDK #define gdk_gc_get_values_LIB LIB_GDK #define gdk_pixbuf_save_to_bufferv_LIB LIB_GDK +#define gdk_pixbuf_render_pixmap_and_mask_LIB LIB_GDK #define gdk_pointer_grab_LIB LIB_GDK #define gdk_pointer_ungrab_LIB LIB_GDK #define gdk_screen_get_default_LIB LIB_GDK diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java index ac7901e1ab..1e04e9de2e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java @@ -4648,11 +4648,7 @@ public static final void gdk_pixbuf_render_to_drawable(long /*int*/ pixbuf, long lock.unlock(); } } -/** - * @param pixbuf cast=(GdkPixbuf *) - * @param pixmap_return cast=(GdkDrawable **) - * @param mask_return cast=(GdkBitmap **) - */ +/** @method flags=dynamic */ public static final native void _gdk_pixbuf_render_pixmap_and_mask(long /*int*/ pixbuf, long /*int*/[] pixmap_return, long /*int*/[] mask_return, int alpha_threshold); public static final void gdk_pixbuf_render_pixmap_and_mask(long /*int*/ pixbuf, long /*int*/[] pixmap_return, long /*int*/[] mask_return, int alpha_threshold) { lock.lock(); |