[cairo-commit] cairo-java/src/java/org/freedesktop/cairo Surface.java, 1.4, 1.5 ImageSurface.java, 1.2, 1.3

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/java/org/freedesktop/cairo
In directory gabe:/tmp/cvs-serv28109/src/java/org/freedesktop/cairo

Modified Files:
	Surface.java ImageSurface.java 
Log Message:
removed deprecated method and added makeTarget for ImageSurface

Index: Surface.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/Surface.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Surface.java	25 Mar 2005 16:53:33 -0000	1.4
+++ Surface.java	2 Apr 2005 11:46:23 -0000	1.5
@@ -94,7 +94,6 @@
     /*
      * Native calls
      */
-    native static final private Handle cairo_surface_create_for_image(String data, int format, int width, int height, int stride);
     native static final private Handle cairo_surface_create_similar(Handle other, int format, int width, int height);
     native static final private void cairo_surface_reference(Handle obj);
     native static final private void cairo_surface_destroy(Handle obj);

Index: ImageSurface.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/ImageSurface.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ImageSurface.java	24 Mar 2005 18:11:40 -0000	1.2
+++ ImageSurface.java	2 Apr 2005 11:46:23 -0000	1.3
@@ -23,6 +23,10 @@
 		super(cairo_image_surface_create_for_data(data, format.getValue(), width, height, stride));
 	}
 	
+	void makeTarget(Cairo cr) {
+		cr.setTargetSurface(this);
+	}
+	
 	/*
 	 * Native calls
 	 */




More information about the cairo-commit mailing list