[cairo-commit] cairo-java/src/java/org/freedesktop/cairo
Context.java, 1.10, 1.11
Ismael Juma
commit at pdx.freedesktop.org
Fri Dec 2 02:37:00 PST 2005
Committed by: ijuma
Update of /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo
In directory gabe:/tmp/cvs-serv14816/src/java/org/freedesktop/cairo
Modified Files:
Context.java
Log Message:
Fix bug #5208 (Context.getMatrix() fails) and also fix object being passed to getPointerFromHandle.
Index: Context.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/Context.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Context.java 13 Sep 2005 03:14:10 -0000 1.10
+++ Context.java 2 Dec 2005 10:36:58 -0000 1.11
@@ -870,9 +870,8 @@
* @return the current transformation matrix
*/
public Matrix getMatrix() {
- Handle hndl = Struct.getNullHandle();
- cairo_get_matrix(getHandle(), hndl);
- return new Matrix(hndl);
+ Handle handle = cairo_get_matrix(getHandle());
+ return new Matrix(handle);
}
/**
@@ -1014,7 +1013,7 @@
native static final private int cairo_get_line_cap(Handle obj);
native static final private int cairo_get_line_join(Handle obj);
native static final private double cairo_get_miter_limit(Handle obj);
- native static final private void cairo_get_matrix(Handle obj, Handle matrix);
+ native static final private Handle cairo_get_matrix(Handle obj);
native static final private Handle cairo_get_target(Handle obj);
native static final private int cairo_status(Handle obj);
native static final private void cairo_set_antialias(Handle obj, int antialias);
More information about the cairo-commit
mailing list