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/buffer.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'riscos/buffer.c') diff --git a/riscos/buffer.c b/riscos/buffer.c index c770dd163..ebd099a5e 100644 --- a/riscos/buffer.c +++ b/riscos/buffer.c @@ -19,10 +19,10 @@ #include #include #include -#include +#include "swis.h" #include "oslib/colourtrans.h" #include "oslib/os.h" -#include +#include "oslib/osspriteop.h" #include "oslib/wimp.h" #include "oslib/wimpreadsysinfo.h" #include "riscos/buffer.h" @@ -68,7 +68,8 @@ static os_mode mode; * * \param redraw the current WIMP redraw area to buffer */ -void ro_gui_buffer_open(wimp_draw *redraw) { +void ro_gui_buffer_open(wimp_draw *redraw) +{ int size; int total_size; os_coord sprite_size; @@ -251,8 +252,8 @@ void ro_gui_buffer_open(wimp_draw *redraw) { /** * Closes any open buffer and flushes the contents to screen */ -void ro_gui_buffer_close(void) { - +void ro_gui_buffer_close(void) +{ /* Check we have an open buffer */ if (!buffer) @@ -289,7 +290,8 @@ void ro_gui_buffer_close(void) { /** * Releases any buffer memory depending on cache constraints. */ -static void ro_gui_buffer_free(void) { +static void ro_gui_buffer_free(void) +{ free(buffer); buffer = NULL; } -- cgit v1.2.3