diff options
Diffstat (limited to 'examples/parshape.c')
-rw-r--r-- | examples/parshape.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/parshape.c b/examples/parshape.c index c09e1ddd..da4b5516 100644 --- a/examples/parshape.c +++ b/examples/parshape.c @@ -99,7 +99,9 @@ main (int argc, char *argv[]) for (int i = 0; i < pango_lines_get_line_count (lines); i++) { - PangoLine *line = pango_lines_get_line (lines, i, &x, &y); + PangoLine *line = pango_lines_get_lines (lines)[i]; + + pango_lines_get_line_position (lines, i, &x, &y); cairo_save (cr); cairo_move_to (cr, x / (double)PANGO_SCALE, y / (double)PANGO_SCALE); |