From df2d62a872ebd9af169f943931c155f12b763c12 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 8 Feb 2016 15:59:24 +0000 Subject: Use readonly get_line, since it is supposed to be faster. --- gtk/font_pango.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk') 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); -- cgit v1.2.3