[pango/line-breaker] pango-view: adapt



commit b0163522c71c6d473af87993ad3179ce4ccaf738
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 23 08:50:06 2022 -0500

    pango-view: adapt

 utils/viewer-pangocairo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/utils/viewer-pangocairo.c b/utils/viewer-pangocairo.c
index deafbfc7..1ae751ee 100644
--- a/utils/viewer-pangocairo.c
+++ b/utils/viewer-pangocairo.c
@@ -290,7 +290,7 @@ render_callback (PangoLayout *layout,
               cairo_translate (cr,
                              (double)logical.x / PANGO_SCALE + width * 0.5,
                              (double)y / PANGO_SCALE);
-              if (pango_layout_line_get_direction (line))
+              if (pango_layout_line_get_resolved_direction (line))
                 cairo_scale (cr, -1, 1);
               cairo_move_to     (cr, -width * .5, -lw*0.2);
               cairo_rel_line_to (cr, +width * .9, -lw*0.3);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]