diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | pango/pangocairo-context.c | 3 |
2 files changed, 11 insertions, 1 deletions
@@ -1,5 +1,14 @@ 2007-10-24 Behdad Esfahbod <behdad@gnome.org> + Bug 489909 – pango_cairo_update_context() should ignore matrix + translation + + * pango/pangocairo-context.c (_pango_cairo_update_context): + Just compare the first four doubles of matrices for change + notification purposes. + +2007-10-24 Behdad Esfahbod <behdad@gnome.org> + Bug 486951 – ChangeLog.pre-1-18 * Makefile.am: diff --git a/pango/pangocairo-context.c b/pango/pangocairo-context.c index 35018ffa..53cabfc6 100644 --- a/pango/pangocairo-context.c +++ b/pango/pangocairo-context.c @@ -107,7 +107,8 @@ _pango_cairo_update_context (cairo_t *cr, if (!layout_matrix) layout_matrix = &identity_matrix; - if (0 != memcmp (&pango_matrix, layout_matrix, sizeof (pango_matrix))) + /* ignore translation offsets */ + if (0 != memcmp (&pango_matrix, layout_matrix, 4 * sizeof (double))) changed = TRUE; pango_context_set_matrix (context, &pango_matrix); |