Mercurial > sdl-ios-xcode
diff src/video/cybergfx/SDL_cgxaccel.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 | c71e05b4dc2e |
line wrap: on
line diff
--- a/src/video/cybergfx/SDL_cgxaccel.c Mon Feb 06 17:28:04 2006 +0000 +++ b/src/video/cybergfx/SDL_cgxaccel.c Tue Feb 07 06:59:48 2006 +0000 @@ -52,14 +52,14 @@ if(surface->hwdata) { if(surface->hwdata->mask) - free(surface->hwdata->mask); + SDL_free(surface->hwdata->mask); - if(surface->hwdata->mask=malloc(RASSIZE(surface->w,surface->h))) + if(surface->hwdata->mask=SDL_malloc(RASSIZE(surface->w,surface->h))) { Uint32 pitch,ok=0; APTR lock; - memset(surface->hwdata->mask,255,RASSIZE(surface->w,surface->h)); + SDL_memset(surface->hwdata->mask,255,RASSIZE(surface->w,surface->h)); D(bug("Building colorkey mask: color: %ld, size: %ld x %ld, %ld bytes...Bpp:%ld\n",key,surface->w,surface->h,RASSIZE(surface->w,surface->h),surface->format->BytesPerPixel)); @@ -155,7 +155,7 @@ break; default: D(bug("Pixel mode non supported for color key...")); - free(surface->hwdata->mask); + SDL_free(surface->hwdata->mask); surface->hwdata->mask=NULL; ok=-1; }