summaryrefslogtreecommitdiff
path: root/pango/pangocairo-context.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2009-01-02 08:41:42 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2009-01-02 08:41:42 +0000
commit4898ac87e81e7c748147aff017368608d8c6c9bb (patch)
tree6b5e1738a6dcd7f7168eeff61167b74d71ccfa0b /pango/pangocairo-context.c
parent2317196c109647541c6339eac81db542bc0ca425 (diff)
downloadpango-4898ac87e81e7c748147aff017368608d8c6c9bb.tar.gz
Completely ignore CTM translation offsets.
2009-01-02 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-context.c (_pango_cairo_update_context): Completely ignore CTM translation offsets. svn path=/trunk/; revision=2776
Diffstat (limited to 'pango/pangocairo-context.c')
-rw-r--r--pango/pangocairo-context.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pangocairo-context.c b/pango/pangocairo-context.c
index 455f5e49..289d7db2 100644
--- a/pango/pangocairo-context.c
+++ b/pango/pangocairo-context.c
@@ -123,8 +123,8 @@ _pango_cairo_update_context (cairo_t *cr,
pango_matrix.yx = cairo_matrix.yx;
pango_matrix.xy = cairo_matrix.xy;
pango_matrix.yy = cairo_matrix.yy;
- pango_matrix.x0 = cairo_matrix.x0;
- pango_matrix.y0 = cairo_matrix.y0;
+ pango_matrix.x0 = 0;
+ pango_matrix.y0 = 0;
current_matrix = pango_context_get_matrix (context);
if (!current_matrix)
@@ -133,7 +133,7 @@ _pango_cairo_update_context (cairo_t *cr,
/* layout is matrix-independent if metrics-hinting is off.
* also ignore matrix translation offsets */
if ((cairo_font_options_get_hint_metrics (merged_options) != CAIRO_HINT_METRICS_OFF) &&
- (0 != memcmp (&pango_matrix, current_matrix, 4 * sizeof (double))))
+ (0 != memcmp (&pango_matrix, current_matrix, sizeof (PangoMatrix))))
changed = TRUE;
pango_context_set_matrix (context, &pango_matrix);