summaryrefslogtreecommitdiff
path: root/src/cairo-pen.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-04-07 10:01:49 +0000
committerCarl Worth <cworth@cworth.org>2005-04-07 10:01:49 +0000
commitd135938efd443e4adce63cf8c5926ac421b2d3ed (patch)
treef0398b406ea37889ff7604a834be4eedeeab91ae /src/cairo-pen.c
parent92060c12ee2acc38541ec2398abba5e1569278de (diff)
downloadcairo-d135938efd443e4adce63cf8c5926ac421b2d3ed.tar.gz
Rework the cairo_matrix_t interface in several ways. Expose a struct for cairo_matrix_t.
Add new function to return current matrix: cairo_get_matrix Deprecate the following functions (in documentation): cairo_matrix_create cairo_matrix_destroy cairo_matrix_get_affine Rename: cairo_matrix_set_affine -> cairo_matrix_init cairo_matrix_set_identity -> cairo_matrix_init_identity Add other new matrix initialization functions: cairo_matrix_init_translate cairo_matrix_init_scale cairo_matrix_init_rotate Change return type of almost all cairo_matrix functions from cairo_status_t to void. Track changes to cairo_matrix_t interface. Add a test case showing the same path drawn under various transforms, (including skews set directly by initializing a cairo_matrix_t).
Diffstat (limited to 'src/cairo-pen.c')
-rw-r--r--src/cairo-pen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-pen.c b/src/cairo-pen.c
index 300d6e932..18b9ddb59 100644
--- a/src/cairo-pen.c
+++ b/src/cairo-pen.c
@@ -374,8 +374,8 @@ _cairo_pen_vertices_needed (double tolerance,
double radius,
cairo_matrix_t *matrix)
{
- double a = matrix->m[0][0], c = matrix->m[0][1];
- double b = matrix->m[1][0], d = matrix->m[1][1];
+ double a = matrix->xx, b = matrix->yx;
+ double c = matrix->xy, d = matrix->yy;
double i = a*a + c*c;
double j = b*b + d*d;