From 5f6c2cbff7cd778b6487943d62e71ff9e7b04893 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Sat, 26 Jul 2008 22:29:15 +0000 Subject: - Compiler warning squash - Changed a lineending \n\r -> \n for a couple of files. - More code style conformance. svn path=/trunk/netsurf/; revision=4762 --- riscos/configure/con_memory.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'riscos/configure/con_memory.c') diff --git a/riscos/configure/con_memory.c b/riscos/configure/con_memory.c index f665dde28..65d9bed26 100644 --- a/riscos/configure/con_memory.c +++ b/riscos/configure/con_memory.c @@ -16,6 +16,7 @@ * along with this program. If not, see . */ +#include #include "desktop/options.h" #include "riscos/bitmap.h" #include "riscos/options.h" @@ -43,7 +44,8 @@ static bool ro_gui_options_memory_click(wimp_pointer *pointer); static bool ro_gui_options_memory_ok(wimp_w w); static void ro_gui_options_update_shading(wimp_w w); -bool ro_gui_options_memory_initialise(wimp_w w) { +bool ro_gui_options_memory_initialise(wimp_w w) +{ /* set the current values */ ro_gui_set_icon_decimal(w, MEMORY_DIRECT_FIELD, (bitmap_direct_size * 10) >> 20, 1); @@ -77,7 +79,8 @@ bool ro_gui_options_memory_initialise(wimp_w w) { } -bool ro_gui_options_memory_click(wimp_pointer *pointer) { +bool ro_gui_options_memory_click(wimp_pointer *pointer) +{ switch (pointer->i) { case MEMORY_DIRECT_AUTO: ro_gui_options_update_shading(pointer->w); @@ -100,7 +103,8 @@ bool ro_gui_options_memory_click(wimp_pointer *pointer) { return false; } -void ro_gui_options_update_shading(wimp_w w) { +void ro_gui_options_update_shading(wimp_w w) +{ bool shaded; shaded = ro_gui_get_icon_selected_state(w, MEMORY_DIRECT_AUTO); @@ -115,7 +119,8 @@ void ro_gui_options_update_shading(wimp_w w) { ro_gui_set_icon_shaded_state(w, MEMORY_COMPRESSED_TEXT, shaded); } -bool ro_gui_options_memory_ok(wimp_w w) { +bool ro_gui_options_memory_ok(wimp_w w) +{ /* set the option values */ if (ro_gui_get_icon_selected_state(w, MEMORY_DIRECT_AUTO)) option_image_memory_direct = -1; -- cgit v1.2.3