summaryrefslogtreecommitdiff
path: root/src/cairo-matrix.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-05-09 13:17:30 +0200
committerBehdad Esfahbod <behdad@behdad.org>2008-05-09 15:54:11 +0200
commitbdfda97f191fa6ffa64abad5b6f035244d91f44c (patch)
treefa51a4483d345ece57d12dc4565066b1892b3dae /src/cairo-matrix.c
parent6c9902fd746d70d9cc22c938f4ca68640e48bb73 (diff)
[cairo-matrix] Add _cairo_matrix_transform_bounding_box_fixed()
Diffstat (limited to 'src/cairo-matrix.c')
-rw-r--r--src/cairo-matrix.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cairo-matrix.c b/src/cairo-matrix.c
index 57414b7e..b7432733 100644
--- a/src/cairo-matrix.c
+++ b/src/cairo-matrix.c
@@ -423,6 +423,18 @@ _cairo_matrix_transform_bounding_box (const cairo_matrix_t *matrix,
}
}
+cairo_private void
+_cairo_matrix_transform_bounding_box_fixed (const cairo_matrix_t *matrix,
+ cairo_box_t *bbox,
+ cairo_bool_t *is_tight)
+{
+ double x1, y1, x2, y2;
+
+ _cairo_box_to_doubles (bbox, &x1, &y1, &x2, &y2);
+ _cairo_matrix_transform_bounding_box (matrix, &x1, &y1, &x2, &y2, is_tight);
+ _cairo_box_from_doubles (bbox, &x1, &y1, &x2, &y2);
+}
+
static void
_cairo_matrix_scalar_multiply (cairo_matrix_t *matrix, double scalar)
{