diff options
author | Alexander Kurtakov | 2012-10-23 21:14:48 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2012-10-23 21:14:48 +0000 |
commit | 7850ac994d4ed45b1498711e60e3213e4115df40 (patch) | |
tree | eac20a40e0913dcd3352ee78ea2a30530c0544e6 /bundles/org.eclipse.swt/Eclipse SWT PI | |
parent | 0ad2454d725f5e3608f07cf1f391c8cfe6cf50cd (diff) | |
download | eclipse.platform.swt-7850ac994d4ed45b1498711e60e3213e4115df40.tar.gz eclipse.platform.swt-7850ac994d4ed45b1498711e60e3213e4115df40.tar.xz eclipse.platform.swt-7850ac994d4ed45b1498711e60e3213e4115df40.zip |
Remove GdkDrawPixbuf casts.
It's already dynamic so casts don't buy us anything.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c | 4 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java | 4 |
2 files changed, 2 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 5b4c294190..814c2211e8 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 @@ -5250,12 +5250,12 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gdk_1draw_1pixbuf) { OS_NATIVE_ENTER(env, that, _1gdk_1draw_1pixbuf_FUNC); /* - gdk_draw_pixbuf((GdkDrawable *)arg0, (GdkGC *)arg1, (GdkPixbuf *)arg2, (gint)arg3, (gint)arg4, (gint)arg5, (gint)arg6, (gint)arg7, (gint)arg8, (GdkRgbDither)arg9, (gint)arg10, (gint)arg11); + gdk_draw_pixbuf(arg0, arg1, arg2, (gint)arg3, (gint)arg4, (gint)arg5, (gint)arg6, (gint)arg7, (gint)arg8, arg9, (gint)arg10, (gint)arg11); */ { OS_LOAD_FUNCTION(fp, gdk_draw_pixbuf) if (fp) { - ((void (CALLING_CONVENTION*)(GdkDrawable *, GdkGC *, GdkPixbuf *, gint, gint, gint, gint, gint, gint, GdkRgbDither, gint, gint))fp)((GdkDrawable *)arg0, (GdkGC *)arg1, (GdkPixbuf *)arg2, (gint)arg3, (gint)arg4, (gint)arg5, (gint)arg6, (gint)arg7, (gint)arg8, (GdkRgbDither)arg9, (gint)arg10, (gint)arg11); + ((void (CALLING_CONVENTION*)(jintLong, jintLong, jintLong, gint, gint, gint, gint, gint, gint, jint, gint, gint))fp)(arg0, arg1, arg2, (gint)arg3, (gint)arg4, (gint)arg5, (gint)arg6, (gint)arg7, (gint)arg8, arg9, (gint)arg10, (gint)arg11); } } OS_NATIVE_EXIT(env, that, _1gdk_1draw_1pixbuf_FUNC); 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 7236bfb1e3..cf45f1c776 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 @@ -3936,16 +3936,12 @@ public static final void gdk_draw_lines(long /*int*/ drawable, long /*int*/ gc, } /** * @method flags=dynamic - * @param drawable cast=(GdkDrawable *) - * @param gc cast=(GdkGC *) - * @param pixbuf cast=(GdkPixbuf *) * @param xsrc cast=(gint) * @param ysrc cast=(gint) * @param xdest cast=(gint) * @param ydest cast=(gint) * @param width cast=(gint) * @param height cast=(gint) - * @param dither cast=(GdkRgbDither) * @param x_dither cast=(gint) * @param y_dither cast=(gint) */ |