diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-08-14 09:30:48 -0400 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2012-08-14 09:30:48 -0400 |
commit | 185736360602c59d20298a04d5f14c0431a71471 (patch) | |
tree | 680befb457ddddb7106cdd9e765c5fd3c04d0654 | |
parent | 390e16e87916237b4b4a491c6ddf80f8de406bfc (diff) | |
download | eclipse.platform.swt-gdk_pixbuf_render.tar.gz eclipse.platform.swt-gdk_pixbuf_render.tar.xz eclipse.platform.swt-gdk_pixbuf_render.zip |
Make gdk_pixbuf_render_to_drawable() dynamicgdk_pixbuf_render
3 files changed, 11 insertions, 7 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 b71852b2c0..ce40f3a79b 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 @@ -6018,7 +6018,15 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1pixbuf_1render_1to_1drawable) (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8, jint arg9, jint arg10, jint arg11) { OS_NATIVE_ENTER(env, that, _1gdk_1pixbuf_1render_1to_1drawable_FUNC); - gdk_pixbuf_render_to_drawable((GdkPixbuf *)arg0, (GdkDrawable *)arg1, (GdkGC *)arg2, arg3, arg4, arg5, arg6, arg7, arg8, (GdkRgbDither)arg9, arg10, arg11); +/* + gdk_pixbuf_render_to_drawable(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); +*/ + { + OS_LOAD_FUNCTION(fp, gdk_pixbuf_render_to_drawable) + if (fp) { + ((void (CALLING_CONVENTION*)(jintLong, jintLong, jintLong, jint, jint, jint, jint, jint, jint, jint, jint, jint))fp)(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); + } + } OS_NATIVE_EXIT(env, that, _1gdk_1pixbuf_1render_1to_1drawable_FUNC); } #endif 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 2671afd6da..bf1ed0f5ee 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 @@ -182,6 +182,7 @@ #define gdk_screen_get_monitor_geometry_LIB LIB_GDK #define gdk_screen_get_n_monitors_LIB LIB_GDK #define gdk_screen_get_number_LIB LIB_GDK +#define gdk_pixbuf_render_to_drawable_LIB LIB_GDK #define gtk_scrolled_window_get_hscrollbar_LIB LIB_GTK #define gtk_scrolled_window_get_vscrollbar_LIB LIB_GTK #define gtk_status_icon_get_geometry_LIB LIB_GTK 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 d221129a8e..0b497cc7c7 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 @@ -4525,12 +4525,7 @@ public static final int /*long*/ gdk_pixbuf_new_from_file(byte[] filename, int / lock.unlock(); } } -/** - * @param pixbuf cast=(GdkPixbuf *) - * @param drawable cast=(GdkDrawable *) - * @param gc cast=(GdkGC *) - * @param dither cast=(GdkRgbDither) - */ +/** @method flags=dynamic */ public static final native void _gdk_pixbuf_render_to_drawable(int /*long*/ pixbuf, int /*long*/ drawable, int /*long*/ gc, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int dither, int x_dither, int y_dither); public static final void gdk_pixbuf_render_to_drawable(int /*long*/ pixbuf, int /*long*/ drawable, int /*long*/ gc, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int dither, int x_dither, int y_dither) { lock.lock(); |