summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-02-08 15:59:24 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2016-02-08 15:59:24 +0000
commitdf2d62a872ebd9af169f943931c155f12b763c12 (patch)
treebbbee34e5cac7c1801945a635f2594e6d113a4e2
parent9cb522ce38b54156380edff162e32f36e3e9a20c (diff)
downloadnetsurf-df2d62a872ebd9af169f943931c155f12b763c12.tar.gz
netsurf-df2d62a872ebd9af169f943931c155f12b763c12.tar.bz2
Use readonly get_line, since it is supposed to be faster.
-rw-r--r--gtk/font_pango.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/font_pango.c b/gtk/font_pango.c
index e83619ad8..53b443c5d 100644
--- a/gtk/font_pango.c
+++ b/gtk/font_pango.c
@@ -244,7 +244,7 @@ bool nsfont_paint(int x, int y, const char *string, size_t length,
pango_layout_set_font_description(layout, desc);
pango_layout_set_text(layout, string, length);
- line = pango_layout_get_line(layout, 0);
+ line = pango_layout_get_line_readonly(layout, 0);
cairo_move_to(current_cr, x, y);
nsgtk_set_colour(fstyle->foreground);