pango r2776 - in trunk: . pango
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: pango r2776 - in trunk: . pango
- Date: Fri, 2 Jan 2009 08:41:43 +0000 (UTC)
Author: behdad
Date: Fri Jan 2 08:41:42 2009
New Revision: 2776
URL: http://svn.gnome.org/viewvc/pango?rev=2776&view=rev
Log:
2009-01-02 Behdad Esfahbod <behdad gnome org>
* pango/pangocairo-context.c (_pango_cairo_update_context):
Completely ignore CTM translation offsets.
Modified:
trunk/ChangeLog
trunk/pango/pangocairo-context.c
Modified: trunk/pango/pangocairo-context.c
==============================================================================
--- trunk/pango/pangocairo-context.c (original)
+++ trunk/pango/pangocairo-context.c Fri Jan 2 08:41:42 2009
@@ -123,8 +123,8 @@
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 @@
/* 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]