mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 13:06:49 +03:00
Use readonly get_line, since it is supposed to be faster.
This commit is contained in:
parent
9cb522ce38
commit
df2d62a872
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user