summaryrefslogtreecommitdiff
path: root/utils/viewer-pangocairo.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-28 13:41:37 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-29 22:49:02 -0400
commit6c84e672cb0e7bcc9a74f9ca0462c073a2ee2c19 (patch)
treebe3456968500e5d7190c6885ff29755b762a0c6a /utils/viewer-pangocairo.c
parentc9cfd2653a64066cd3bd24300423f2268749ef64 (diff)
downloadpango-6c84e672cb0e7bcc9a74f9ca0462c073a2ee2c19.tar.gz
pango-view: Use pango_glyph_string_index_to_x_fullmore-rtl-cluster-fixes
Diffstat (limited to 'utils/viewer-pangocairo.c')
-rw-r--r--utils/viewer-pangocairo.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/utils/viewer-pangocairo.c b/utils/viewer-pangocairo.c
index 98591e5a..c94de9e1 100644
--- a/utils/viewer-pangocairo.c
+++ b/utils/viewer-pangocairo.c
@@ -534,13 +534,14 @@ render_callback (PangoLayout *layout,
{
if (attrs[offset + i].is_cursor_position)
{
- pango_glyph_string_index_to_x (run->glyphs,
- text + run->item->offset,
- run->item->length,
- &run->item->analysis,
- p - start,
- trailing,
- &x);
+ pango_glyph_string_index_to_x_full (run->glyphs,
+ text + run->item->offset,
+ run->item->length,
+ &run->item->analysis,
+ (PangoLogAttr *)attrs + offset,
+ p - start,
+ trailing,
+ &x);
x += rect.x;
cairo_set_source_rgba (cr, 1.0, 0.0, 1.0, 0.5);