diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-26 10:00:09 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-26 10:00:09 +0100 |
commit | 6fe8e7ad53f62c657ee89e9836f18e867647843a (patch) | |
tree | 6e5b51ddb2a97a1ffa30544e139e60efc66da0d1 /riscos/configure.c | |
parent | 290e4c5bf7f0e3fd9c09e1db80578f7a05963e73 (diff) | |
download | netsurf-6fe8e7ad53f62c657ee89e9836f18e867647843a.tar.gz netsurf-6fe8e7ad53f62c657ee89e9836f18e867647843a.tar.bz2 |
Scope reduce some variables.
Diffstat (limited to 'riscos/configure.c')
-rw-r--r-- | riscos/configure.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/riscos/configure.c b/riscos/configure.c index 0f5ee322b..cd831b2e4 100644 --- a/riscos/configure.c +++ b/riscos/configure.c @@ -177,9 +177,8 @@ void ro_gui_configure_open_window(wimp_open *open) int screen_width, screen_height; int height, width; int icons_per_line, icon_lines; - int max_icons_per_line, max_height; + int max_height; os_box extent = { 0, 0, 0, 0 }; - int x, y, l; struct configure_tool *tool; if (!ro_gui_configure_translate()) { @@ -195,6 +194,7 @@ void ro_gui_configure_open_window(wimp_open *open) /* move our icons */ if (icons_per_line != configure_icons_per_line) { + int x, y, l; configure_icons_per_line = icons_per_line; x = CONFIGURE_ICON_PADDING_H / 2; y = -configure_icon_height + (CONFIGURE_ICON_PADDING_V / 2); @@ -238,6 +238,7 @@ void ro_gui_configure_open_window(wimp_open *open) /* set the extent */ if ((configure_height != height) || (configure_width != width)) { + int max_icons_per_line; ro_gui_screen_size(&screen_width, &screen_height); max_icons_per_line = screen_width / configure_icon_width; if (max_icons_per_line > configure_icons) |