[cairo-commit] cairo-java/src/java/org/freedesktop/cairo
PdfSurface.java, 1.5, 1.6
Jeffrey Morgan
commit at pdx.freedesktop.org
Fri Mar 25 08:18:56 PST 2005
Committed by: kuzman
Update of /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo
In directory gabe:/tmp/cvs-serv20222/src/java/org/freedesktop/cairo
Modified Files:
PdfSurface.java
Log Message:
updated api to match upstream lib
Index: PdfSurface.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/PdfSurface.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- PdfSurface.java 24 Mar 2005 18:11:40 -0000 1.5
+++ PdfSurface.java 25 Mar 2005 16:18:54 -0000 1.6
@@ -60,20 +60,20 @@
if (!dir.canWrite())
throw new IOException("Cannot write to file: " + filename);
}
- return cairo_pdf_surface_create(filename, widthInches, heightInches, xPixels, yPixels);
+ return cairo_pdf_surface_create_for_file(filename, widthInches, heightInches, xPixels, yPixels);
}
void makeTarget(Cairo cr) {
- cairo_set_target_pdf(cr.getHandle(), getHandle(), width, height, xPixels, yPixels);
+ cairo_set_target_pdf_as_file(cr.getHandle(), getHandle(), width, height, xPixels, yPixels);
}
/*
* Native calls
*/
- native static final private void cairo_set_target_pdf(Handle cr, Handle sur,
+ native static final private void cairo_set_target_pdf_as_file(Handle cr, Handle sur,
double width_inches, double height_inches,
double x_pixels_per_inch, double y_pixels_per_inch);
- native static final private Handle cairo_pdf_surface_create(String filename,
+ native static final private Handle cairo_pdf_surface_create_for_file(String filename,
double width_inches, double height_inches,
double x_pixels_per_inch, double y_pixels_per_inch);
native static final private void close(Handle handle);
More information about the cairo-commit
mailing list