[cairo-commit] cairo-java/src/jni org_freedesktop_cairo_Pattern.c,
1.4, 1.5
Jeffrey Morgan
commit at pdx.freedesktop.org
Sun Jun 26 16:15:51 PDT 2005
Committed by: kuzman
Update of /cvs/cairo/cairo-java/src/jni
In directory gabe:/tmp/cvs-serv1699/src/jni
Modified Files:
org_freedesktop_cairo_Pattern.c
Log Message:
updated to match upstream changes.
Index: org_freedesktop_cairo_Pattern.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_Pattern.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- org_freedesktop_cairo_Pattern.c 9 May 2005 15:38:24 -0000 1.4
+++ org_freedesktop_cairo_Pattern.c 26 Jun 2005 23:15:49 -0000 1.5
@@ -90,12 +90,12 @@
* Method: cairo_pattern_add_color_stop_rgb
* Signature: (Lorg/gnu/glib/Handle;DDDDD)I
*/
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1add_1color_1stop_1rgb
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1add_1color_1stop_1rgb
(JNIEnv *env, jclass cls, jobject obj, jdouble offset, jdouble red, jdouble green,
jdouble blue)
{
cairo_pattern_t *pat = (cairo_pattern_t*)getPointerFromHandle(env, obj);
- return cairo_pattern_add_color_stop_rgb(pat, offset, red, green, blue);
+ cairo_pattern_add_color_stop_rgb(pat, offset, red, green, blue);
}
/*
@@ -103,12 +103,12 @@
* Method: cairo_pattern_add_color_stop_rgba
* Signature: (Lorg/gnu/glib/Handle;DDDDD)I
*/
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1add_1color_1stop_1rgba
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1add_1color_1stop_1rgba
(JNIEnv *env, jclass cls, jobject obj, jdouble offset, jdouble red, jdouble green,
jdouble blue, jdouble alpha)
{
cairo_pattern_t *pat = (cairo_pattern_t*)getPointerFromHandle(env, obj);
- return cairo_pattern_add_color_stop_rgba(pat, offset, red, green, blue, alpha);
+ cairo_pattern_add_color_stop_rgba(pat, offset, red, green, blue, alpha);
}
/*
@@ -116,12 +116,12 @@
* Method: cairo_pattern_set_matrix
* Signature: (Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;)I
*/
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1set_1matrix
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1set_1matrix
(JNIEnv *env, jclass cls, jobject obj, jobject matrix)
{
cairo_pattern_t *pat = (cairo_pattern_t*)getPointerFromHandle(env, obj);
cairo_matrix_t *matrix_g = (cairo_matrix_t*)getPointerFromHandle(env, matrix);
- return cairo_pattern_set_matrix(pat, matrix_g);
+ cairo_pattern_set_matrix(pat, matrix_g);
}
/*
@@ -129,14 +129,13 @@
* Method: cairo_pattern_get_matrix
* Signature: (Lorg/gnu/glib/Handle;Lorg/gnu/glib/Handle;)I
*/
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1get_1matrix
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1get_1matrix
(JNIEnv *env, jclass cls, jobject obj, jobject matrix)
{
cairo_pattern_t *pat = (cairo_pattern_t*)getPointerFromHandle(env, obj);
cairo_matrix_t *matrix_g = (cairo_matrix_t*)getPointerFromHandle(env, matrix);
- int status = cairo_pattern_get_matrix(pat, matrix_g);
+ cairo_pattern_get_matrix(pat, matrix_g);
updateHandle(env, matrix, matrix_g);
- return status;
}
/*
@@ -144,11 +143,11 @@
* Method: cairo_pattern_set_extend
* Signature: (Lorg/gnu/glib/Handle;I)I
*/
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1set_1extend
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1set_1extend
(JNIEnv *env, jclass cls, jobject obj, jint extend)
{
cairo_pattern_t *pat = (cairo_pattern_t*)getPointerFromHandle(env, obj);
- return cairo_pattern_set_extend(pat, (cairo_extend_t)extend);
+ cairo_pattern_set_extend(pat, (cairo_extend_t)extend);
}
/*
@@ -168,11 +167,11 @@
* Method: cairo_pattern_set_filter
* Signature: (Lorg/gnu/glib/Handle;I)I
*/
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1set_1filter
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1set_1filter
(JNIEnv *env, jclass cls, jobject obj, jint filter)
{
cairo_pattern_t *pat = (cairo_pattern_t*)getPointerFromHandle(env, obj);
- return cairo_pattern_set_filter(pat, (cairo_filter_t)filter);
+ cairo_pattern_set_filter(pat, (cairo_filter_t)filter);
}
/*
@@ -180,7 +179,7 @@
* Method: cairo_pattern_get_filter
* Signature: (Lorg/gnu/glib/Handle;)I
*/
-JNIEXPORT jint JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1get_1filter
+JNIEXPORT void JNICALL Java_org_freedesktop_cairo_Pattern_cairo_1pattern_1get_1filter
(JNIEnv *env, jclass cls, jobject obj)
{
cairo_pattern_t *pat = (cairo_pattern_t*)getPointerFromHandle(env, obj);
More information about the cairo-commit
mailing list