From 3e2ec17a624ff0d95a462827d2cca94c8fda0321 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Sat, 7 Jan 2006 00:40:59 +0000 Subject: [PATCH] [project @ 2006-01-07 00:40:59 by rjw] Add new configure tools. Improve initial window size. svn path=/import/netsurf/; revision=2007 --- riscos/configure.c | 10 ++++++++-- riscos/configure/configure.h | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/riscos/configure.c b/riscos/configure.c index 7a503960a..c9a504a7f 100644 --- a/riscos/configure.c +++ b/riscos/configure.c @@ -74,13 +74,19 @@ void ro_gui_configure_initialise(void) { ro_gui_configure_register("con_theme", ro_gui_options_theme_initialise, ro_gui_options_theme_finalise); + ro_gui_configure_register("con_cache", + ro_gui_options_cache_initialise, + ro_gui_wimp_event_finalise); + ro_gui_configure_register("con_home", + ro_gui_options_home_initialise, + ro_gui_wimp_event_finalise); } void ro_gui_configure_show(void) { int width, height; - width = configure_icon_width * 5; - height = (configure_icons % 5) * configure_icon_height; + width = configure_icon_width << 2; + height = ((configure_icons + 3) >> 2) * configure_icon_height; ro_gui_dialog_open_top(configure_window, NULL, width, height); } diff --git a/riscos/configure/configure.h b/riscos/configure/configure.h index e91ad4256..acc28491e 100644 --- a/riscos/configure/configure.h +++ b/riscos/configure/configure.h @@ -15,10 +15,12 @@ #include +bool ro_gui_options_cache_initialise(wimp_w w); bool ro_gui_options_fonts_initialise(wimp_w w); -bool ro_gui_options_memory_initialise(wimp_w w); +bool ro_gui_options_home_initialise(wimp_w w); bool ro_gui_options_image_initialise(wimp_w w); void ro_gui_options_image_finalise(wimp_w w); +bool ro_gui_options_memory_initialise(wimp_w w); bool ro_gui_options_theme_initialise(wimp_w w); void ro_gui_options_theme_finalise(wimp_w w);