[cairo-commit] cairo-java/src/jni org_freedesktop_cairo_Cairo.c, 1.15, 1.16

Jeffrey Morgan commit at pdx.freedesktop.org
Wed Apr 6 15:35:02 PDT 2005


Committed by: kuzman

Update of /cvs/cairo/cairo-java/src/jni
In directory gabe:/tmp/cvs-serv3877/src/jni

Modified Files:
	org_freedesktop_cairo_Cairo.c 
Log Message:
changed casts to match changes in upstream API.

Index: org_freedesktop_cairo_Cairo.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_Cairo.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- org_freedesktop_cairo_Cairo.c	5 Apr 2005 00:36:59 -0000	1.15
+++ org_freedesktop_cairo_Cairo.c	6 Apr 2005 22:35:00 -0000	1.16
@@ -705,7 +705,7 @@
   (JNIEnv *env, jclass cls, jobject obj, jstring text)
 {
 	cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
-	const unsigned char* t = (const unsigned char*)(*env)->GetStringUTFChars(env, text, NULL);
+	const char* t = (const char*)(*env)->GetStringUTFChars(env, text, NULL);
 	cairo_show_text(cr, t);
 	(*env)->ReleaseStringUTFChars(env, text, (char*)t);
 }
@@ -774,8 +774,8 @@
 {
 	cairo_t *cr;
 	cairo_text_extents_t *extents_g;
-	const unsigned char *text_g = 
-		(const unsigned char*)(*env)->GetStringUTFChars(env, text, NULL);
+	const char *text_g = 
+		(const char*)(*env)->GetStringUTFChars(env, text, NULL);
 	
 	cr = (cairo_t*)getPointerFromHandle(env, obj);
 	extents_g = g_new(cairo_text_extents_t, 1);
@@ -809,7 +809,7 @@
   (JNIEnv *env, jclass cls, jobject obj, jstring text)
 {
 	cairo_t *cr = (cairo_t*)getPointerFromHandle(env, obj);
-	const unsigned char* text_g = (const unsigned char*)(*env)->GetStringUTFChars(env, text, NULL);
+	const char* text_g = (const char*)(*env)->GetStringUTFChars(env, text, NULL);
 	cairo_text_path(cr, text_g);
 	(*env)->ReleaseStringUTFChars(env, text, (char*)text_g);
 }




More information about the cairo-commit mailing list