From 1457a049bb9e77cd85fda95ce492a4d79f536f4a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 11 Aug 2016 08:13:51 +0100 Subject: Treeview: Add `treeview_font_size` to options. Default is 11pt, and RISC OS overrides to 12pt. --- utils/nsoption.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'utils') 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; } -- cgit v1.2.3