Completely ignore CTM translation offsets.
authorBehdad Esfahbod <behdad@gnome.org>
Fri, 2 Jan 2009 08:41:42 +0000 (08:41 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Fri, 2 Jan 2009 08:41:42 +0000 (08:41 +0000)
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

ChangeLog
pango/pangocairo-context.c

index f550e21..fdf9525 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-01-02  Behdad Esfahbod  <behdad@gnome.org>
 
+       * pango/pangocairo-context.c (_pango_cairo_update_context):
+       Completely ignore CTM translation offsets.
+
+2009-01-02  Behdad Esfahbod  <behdad@gnome.org>
+
        * pango/pangocairo-fcfontmap.c (pango_cairo_fc_font_map_finalize):
        * pango/pangoft2-fontmap.c (pango_ft2_font_map_finalize):
        Finalize FreeType library after finalizing the FC fontmap.  Fixes
index 455f5e4..289d7db 100644 (file)
@@ -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);