diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2016-02-08 15:59:24 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2016-02-08 15:59:24 +0000 |
commit | df2d62a872ebd9af169f943931c155f12b763c12 (patch) | |
tree | bbbee34e5cac7c1801945a635f2594e6d113a4e2 /gtk | |
parent | 9cb522ce38b54156380edff162e32f36e3e9a20c (diff) | |
download | netsurf-df2d62a872ebd9af169f943931c155f12b763c12.tar.gz netsurf-df2d62a872ebd9af169f943931c155f12b763c12.tar.bz2 |
Use readonly get_line, since it is supposed to be faster.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/font_pango.c | 2 |
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); |