From 703fd10400f83bd136acf46162fe109f87d5e538 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 12 Feb 2017 10:18:02 +0000 Subject: RISC OS: Initialise nsfont before hotlist. This should allow the treeview to measure the width of label text. --- frontends/riscos/gui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontends/riscos/gui.c') diff --git a/frontends/riscos/gui.c b/frontends/riscos/gui.c index 27b81d92e..540a8be54 100644 --- a/frontends/riscos/gui.c +++ b/frontends/riscos/gui.c @@ -1179,6 +1179,9 @@ static nserror gui_init(int argc, char** argv) /* Initialise save complete functionality */ save_complete_init(); + /* Initialise the font subsystem */ + nsfont_init(); + /* Load in visited URLs, Cookies, and hostlist */ urldb_load(nsoption_charp(url_path)); urldb_load_cookies(nsoption_charp(cookie_file)); @@ -1212,9 +1215,6 @@ static nserror gui_init(int argc, char** argv) ro_message_register_route(message_WINDOW_INFO, ro_msg_window_info); - /* Initialise the font subsystem */ - nsfont_init(); - /* Initialise global information */ ro_gui_get_screen_properties(); ro_gui_wimp_get_desktop_font(); -- cgit v1.2.3