summaryrefslogtreecommitdiff
path: root/riscos/configure
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-05-26 10:06:41 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-05-26 10:06:41 +0100
commit9cb9f638c47b4ff7c3dde1dfd216fbed6801924d (patch)
tree60ce67e5abc6dc4f168372554377d2268401c141 /riscos/configure
parent59e9caf8a163ef28c2726ea920553a507889a663 (diff)
downloadnetsurf-9cb9f638c47b4ff7c3dde1dfd216fbed6801924d.tar.gz
netsurf-9cb9f638c47b4ff7c3dde1dfd216fbed6801924d.tar.bz2
Scope reduce a couple of variables.
Diffstat (limited to 'riscos/configure')
-rw-r--r--riscos/configure/con_theme.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/riscos/configure/con_theme.c b/riscos/configure/con_theme.c
index c4d605c88..13ba3165c 100644
--- a/riscos/configure/con_theme.c
+++ b/riscos/configure/con_theme.c
@@ -172,10 +172,9 @@ bool ro_gui_options_theme_initialise(wimp_w w)
void ro_gui_options_theme_finalise(wimp_w w)
{
- os_error *error;
-
ro_gui_options_theme_free();
if (theme_pane) {
+ os_error *error;
ro_gui_wimp_event_finalise(theme_pane);
error = xwimp_delete_window(theme_pane);
if (error) {
@@ -249,7 +248,6 @@ void ro_gui_options_theme_load(void)
wimp_icon_create new_icon;
wimp_window_state state;
int parent_width, nested_y, min_extent, base_extent;
- int item_height;
int *radio_icons, *radio_set;
int theme_count;
@@ -315,7 +313,7 @@ void ro_gui_options_theme_load(void)
(wimp_COLOUR_VERY_LIGHT_GREY << wimp_ICON_BG_COLOUR_SHIFT);
while (link) {
/* update the toolbar */
- item_height = 44 + 44 + 16;
+ int item_height = 44 + 44 + 16;
if (link->next) item_height += 16;
ro_toolbar_process(link->toolbar, parent_width, false);
extent.y0 = nested_y -