From 59e9caf8a163ef28c2726ea920553a507889a663 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 26 May 2014 10:02:30 +0100 Subject: Scope reduce some variables. --- riscos/configure/con_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'riscos/configure') diff --git a/riscos/configure/con_image.c b/riscos/configure/con_image.c index 4982423a3..a5ebb85d5 100644 --- a/riscos/configure/con_image.c +++ b/riscos/configure/con_image.c @@ -62,11 +62,11 @@ unsigned int tinct_options[] = {tinct_USE_OS_SPRITE_OP, 0, tinct_DITHER, bool ro_gui_options_image_initialise(wimp_w w) { - char pathname[256]; int i; /* load the sprite file */ if (example_users == 0) { + char pathname[256]; snprintf(pathname, 256, "%s.Resources.Image", NETSURF_DIR); pathname[255] = '\0'; example_images = ro_gui_load_sprite_file(pathname); @@ -138,7 +138,6 @@ bool ro_gui_options_image_update(wimp_w w, wimp_i i, wimp_menu *m, void ro_gui_options_image_redraw(wimp_draw *redraw) { osbool more; - int origin_x, origin_y; os_error *error; wimp_icon_state icon_state; osspriteop_header *bg = NULL, *fg = NULL; @@ -168,6 +167,7 @@ void ro_gui_options_image_redraw(wimp_draw *redraw) /* perform the redraw */ more = wimp_redraw_window(redraw); while (more) { + int origin_x, origin_y; origin_x = redraw->box.x0 - redraw->xscroll + icon_state.icon.extent.x0 + 2; origin_y = redraw->box.y1 - redraw->yscroll + -- cgit v1.2.3