summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe@ca.ibm.com>2011-09-19 11:43:05 -0400
committerBogdan Gheorghe <gheorghe@ca.ibm.com>2011-09-19 11:43:05 -0400
commitd089b2cf79ce87d2a82f677ea1a4ce5a5ba9d4a4 (patch)
tree2afccb00f5339e3c0a03f644c917a4e84ef9d23f /bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c
parent33702c0f14302d7231ea3f607b86a900e03829aa (diff)
downloadeclipse.platform.swt-d089b2cf79ce87d2a82f677ea1a4ce5a5ba9d4a4.tar.gz
eclipse.platform.swt-d089b2cf79ce87d2a82f677ea1a4ce5a5ba9d4a4.tar.xz
eclipse.platform.swt-d089b2cf79ce87d2a82f677ea1a4ce5a5ba9d4a4.zip
Bug 354978 - First changes
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c
index e9ed5add0b..f12c814aa9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c
@@ -15,7 +15,7 @@
*
* IBM
* - Binding to permit interfacing between Cairo and SWT
- * - Copyright (C) 2005, 2009 IBM Corp. All Rights Reserved.
+ * - Copyright (C) 2005, 2011 IBM Corp. All Rights Reserved.
*
* ***** END LICENSE BLOCK ***** */
@@ -298,6 +298,26 @@ JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1font_1options_1set_1antialias)
}
#endif
+#ifndef NO__1cairo_1format_1stride_1for_1width
+JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1format_1stride_1for_1width)
+ (JNIEnv *env, jclass that, jint arg0, jint arg1)
+{
+ jint rc = 0;
+ Cairo_NATIVE_ENTER(env, that, _1cairo_1format_1stride_1for_1width_FUNC);
+/*
+ rc = (jint)cairo_format_stride_for_width(arg0, arg1);
+*/
+ {
+ LOAD_FUNCTION(fp, cairo_format_stride_for_width)
+ if (fp) {
+ rc = (jint)((jint (CALLING_CONVENTION*)(jint, jint))fp)(arg0, arg1);
+ }
+ }
+ Cairo_NATIVE_EXIT(env, that, _1cairo_1format_1stride_1for_1width_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO__1cairo_1get_1antialias
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1get_1antialias)
(JNIEnv *env, jclass that, jintLong arg0)