diff options
author | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2009-07-24 07:48:57 +0300 |
---|---|---|
committer | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2009-09-02 04:50:21 +0100 |
commit | 2b0e070f6a6bee415b1036fd149f0c41bcf87abb (patch) | |
tree | 19e1467df95a3a5d6570f0426846c59e3a8a5caa /util | |
parent | 70ea9e3ce1b0037999340e484e62d3a1484da41a (diff) |
[trace] Replace an open coded test for matrix identity.
The code has a _matrix_is_identity() function we can use
instead of open coding the same test.
Diffstat (limited to 'util')
-rw-r--r-- | util/cairo-trace/trace.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index cbdc961d..626a81e4 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -2320,7 +2320,6 @@ cairo_identity_matrix (cairo_t *cr) return DLCALL (cairo_identity_matrix, cr); } - void cairo_new_path (cairo_t *cr) { @@ -2817,9 +2816,7 @@ cairo_set_scaled_font (cairo_t *cr, const cairo_scaled_font_t *scaled_font) static void _emit_matrix (const cairo_matrix_t *m) { - if (m->xx == 1.0 && m->yx == 0.0 && - m->xy == 0.0 && m->yy == 1.0 && - m->x0 == 0.0 && m->y0 == 0.0) + if (_matrix_is_identity(m)) { _trace_printf ("identity"); } |