diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-26 10:09:55 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-26 10:09:55 +0100 |
commit | ba2f3c1cb86c9a5db9bde89027e00d84feda36ce (patch) | |
tree | 4967f8ced6e9b0b476f071f9263329cc76b32d3b | |
parent | f19bfa8f8d5e04074c57af1558024eaf392df70f (diff) | |
download | netsurf-ba2f3c1cb86c9a5db9bde89027e00d84feda36ce.tar.gz netsurf-ba2f3c1cb86c9a5db9bde89027e00d84feda36ce.tar.bz2 |
Scope reduce a couple of variables.
-rw-r--r-- | riscos/dialog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscos/dialog.c b/riscos/dialog.c index d259c8771..91d5c29b4 100644 --- a/riscos/dialog.c +++ b/riscos/dialog.c @@ -407,8 +407,6 @@ bool ro_gui_dialog_open_top(wimp_w w, struct toolbar *toolbar, os_error *error; int screen_width, screen_height; wimp_window_state state; - int dimension; - int scroll_width; bool open; state.w = w; @@ -422,6 +420,8 @@ bool ro_gui_dialog_open_top(wimp_w w, struct toolbar *toolbar, * open in the centre of the screen. */ open = state.flags & wimp_WINDOW_OPEN; if (!open) { + int dimension; + int scroll_width; /* cancel any editing */ if (ro_toolbar_get_editing(toolbar)) ro_toolbar_toggle_edit(toolbar); |