summaryrefslogtreecommitdiff
path: root/examples/cairotwisted.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cairotwisted.c')
-rw-r--r--examples/cairotwisted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cairotwisted.c b/examples/cairotwisted.c
index 88f781b4..ff7952d4 100644
--- a/examples/cairotwisted.c
+++ b/examples/cairotwisted.c
@@ -492,7 +492,7 @@ draw_text (cairo_t *cr,
pango_layout_set_text (layout, text, -1);
- line = pango_lines_get_line (pango_layout_get_lines (layout), 0, NULL, NULL);
+ line = pango_lines_get_lines (pango_layout_get_lines (layout))[0];
cairo_move_to (cr, x, y);
pango_cairo_line_path (cr, line);