diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2016-08-11 08:13:51 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2016-08-11 08:15:21 +0100 |
commit | 1457a049bb9e77cd85fda95ce492a4d79f536f4a (patch) | |
tree | 5f7da0ac4dd9b95986842e3b01aac831822f9636 /utils | |
parent | ebb2a33b0b68104920abbfa2c447595d2c3a2010 (diff) | |
download | netsurf-1457a049bb9e77cd85fda95ce492a4d79f536f4a.tar.gz netsurf-1457a049bb9e77cd85fda95ce492a4d79f536f4a.tar.bz2 |
Treeview: Add `treeview_font_size` to options.
Default is 11pt, and RISC OS overrides to 12pt.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/nsoption.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/nsoption.c b/utils/nsoption.c index 92ecfc176..f92debb30 100644 --- a/utils/nsoption.c +++ b/utils/nsoption.c @@ -144,6 +144,14 @@ static void nsoption_validate(struct nsoption_s *opts, struct nsoption_s *defs) int cloop; bool black = true; + if (opts[NSOPTION_treeview_font_size].value.i < 50) { + opts[NSOPTION_treeview_font_size].value.i = 50; + } + + if (opts[NSOPTION_treeview_font_size].value.i > 1000) { + opts[NSOPTION_treeview_font_size].value.i = 1000; + } + if (opts[NSOPTION_font_size].value.i < 50) { opts[NSOPTION_font_size].value.i = 50; } |