diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-08-14 10:28:16 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-08-14 10:28:16 -0400 |
commit | 603ae928bf13d2666ccd758f83d4469abb1a310a (patch) | |
tree | e959ca480d4612d2ea4066e7342a84f6febe430d | |
parent | e946812c46913b9d68176f44d3cc076287200019 (diff) | |
download | eclipse.platform.swt-603ae928bf13d2666ccd758f83d4469abb1a310a.tar.gz eclipse.platform.swt-603ae928bf13d2666ccd758f83d4469abb1a310a.tar.xz eclipse.platform.swt-603ae928bf13d2666ccd758f83d4469abb1a310a.zip |
Bug 387144 - Make gdk_pixbuf_render_to_drawable() dynamic
3 files changed, 11 insertions, 5 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 9054f1788a..8c476b12cf 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 @@ -6026,7 +6026,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 4e52acf40d..4eb42799e5 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 @@ -183,6 +183,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 880963e323..c2bd4acf5e 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 @@ -4526,10 +4526,7 @@ public static final int /*long*/ gdk_pixbuf_new_from_file(byte[] filename, int / } } /** - * @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) { |