summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-10-24 19:22:29 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-10-24 19:22:29 +0000
commit2ccf75919f04018d9286f53f1954288a8f91547c (patch)
treea97c483748ba78af201d852ecbc6ec8a2f6a49a4 /pango
parent362728ff878d1629b1531279d59b58b9b72bcf66 (diff)
downloadpango-2ccf75919f04018d9286f53f1954288a8f91547c.tar.gz
Bug 489909 – pango_cairo_update_context() should ignore matrix
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. svn path=/trunk/; revision=2470
Diffstat (limited to 'pango')
-rw-r--r--pango/pangocairo-context.c3
1 files changed, 2 insertions, 1 deletions
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);