[cairo-commit] cairo-java/src/jni org_freedesktop_cairo_Surface.c, 1.4, 1.5

Jeffrey Morgan commit at pdx.freedesktop.org
Sat Apr 2 03:46:25 PST 2005


Committed by: kuzman

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

Modified Files:
	org_freedesktop_cairo_Surface.c 
Log Message:
removed deprecated method and added makeTarget for ImageSurface

Index: org_freedesktop_cairo_Surface.c
===================================================================
RCS file: /cvs/cairo/cairo-java/src/jni/org_freedesktop_cairo_Surface.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- org_freedesktop_cairo_Surface.c	25 Mar 2005 16:53:33 -0000	1.4
+++ org_freedesktop_cairo_Surface.c	2 Apr 2005 11:46:23 -0000	1.5
@@ -19,21 +19,6 @@
 
 /*
  * Class:     org_freedesktop_cairo_Surface
- * Method:    cairo_surface_create_for_image
- * Signature: (Ljava/lang/String;IIII)Lorg/gnu/glib/Handle;
- */
-JNIEXPORT jobject JNICALL Java_org_freedesktop_cairo_Surface_cairo_1surface_1create_1for_1image
-  (JNIEnv *env, jclass cls, jstring data, jint format, jint width, jint height, jint stride)
-{
-	char *data_g = (char*)(*env)->GetStringUTFChars(env, data, NULL);
-	jobject hndl =  getHandleFromPointer(env, cairo_surface_create_for_image(data_g, (cairo_format_t)format,
-			width, height, stride));
-	(*env)->ReleaseStringUTFChars(env, data, data_g);
-	return hndl;
-}
-
-/*
- * Class:     org_freedesktop_cairo_Surface
  * Method:    cairo_surface_create_similar
  * Signature: (Lorg/gnu/glib/Handle;III)Lorg/gnu/glib/Handle;
  */




More information about the cairo-commit mailing list