diff src/video/riscos/SDL_wimpvideo.c @ 1336:3692456e7b0f

Use SDL_ prefixed versions of C library functions. FIXME: Change #include <stdlib.h> to #include "SDL_stdlib.h" Change #include <string.h> to #include "SDL_string.h" Make sure nothing else broke because of this...
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 06:59:48 +0000
parents c9b51268668f
children 604d73db6802
line wrap: on
line diff
--- a/src/video/riscos/SDL_wimpvideo.c	Mon Feb 06 17:28:04 2006 +0000
+++ b/src/video/riscos/SDL_wimpvideo.c	Tue Feb 07 06:59:48 2006 +0000
@@ -151,7 +151,7 @@
 	this->hidden->bank[1] = buffer;      /* Start of buffer */
 
 	/* Remember sprite buffer so it can be freed later */
-	if (this->hidden->alloc_bank) free(this->hidden->alloc_bank);
+	if (this->hidden->alloc_bank) SDL_free(this->hidden->alloc_bank);
 	this->hidden->alloc_bank = buffer;
 
 	current->pitch = width * bytesPerPixel;
@@ -165,7 +165,7 @@
 
 	WIMP_ReadModeInfo(this);
 	
-    memset(this->hidden->bank[0], 0, height * current->pitch);
+    SDL_memset(this->hidden->bank[0], 0, height * current->pitch);
 
 	this->hidden->current_bank = 0;
 	current->pixels = this->hidden->bank[0];
@@ -390,7 +390,7 @@
 {
 	_kernel_swi_regs regs;
 
-	strncpy(this->hidden->title, title, 255);
+	SDL_strncpy(this->hidden->title, title, 255);
 	this->hidden->title[255] = 0;
 
 	if (RISCOS_GetWimpVersion() < 380)
@@ -462,7 +462,7 @@
       if (bpp == 8) data += 2048;  /* 8bpp sprite have palette first */
 
       if (buffer == NULL) return 0;
-      memcpy(data, this->hidden->bank[0], width * height * this->screen->format->BytesPerPixel);
+      SDL_memcpy(data, this->hidden->bank[0], width * height * this->screen->format->BytesPerPixel);
    }
    /* else We've switch to full screen before so we already have a sprite */
 
@@ -488,7 +488,7 @@
 
       if (riscos_backbuffer == 0) riscos_backbuffer = 1;
 
-      if (buffer && old_alloc_bank) free(old_alloc_bank);
+      if (buffer && old_alloc_bank) SDL_free(old_alloc_bank);
 
       return 1;
    } else
@@ -497,7 +497,7 @@
       this->hidden->bank[0] = old_bank[0];
       this->hidden->bank[1] = old_bank[1];
       this->hidden->alloc_bank = old_alloc_bank;
-      if (buffer) free(buffer);
+      if (buffer) SDL_free(buffer);
       
       RISCOS_StoreWimpMode();
       FULLSCREEN_SetMode(width, height, bpp);