Mercurial > sdl-ios-xcode
diff src/video/maccommon/SDL_macmouse.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/maccommon/SDL_macmouse.c Mon Feb 06 17:28:04 2006 +0000 +++ b/src/video/maccommon/SDL_macmouse.c Tue Feb 07 06:59:48 2006 +0000 @@ -48,7 +48,7 @@ void Mac_FreeWMCursor(_THIS, WMcursor *cursor) { - free(cursor); + SDL_free(cursor); } WMcursor *Mac_CreateWMCursor(_THIS, @@ -58,12 +58,12 @@ int row, bytes; /* Allocate the cursor memory */ - cursor = (WMcursor *)malloc(sizeof(WMcursor)); + cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); if ( cursor == NULL ) { SDL_OutOfMemory(); return(NULL); } - memset(cursor, 0, sizeof(*cursor)); + SDL_memset(cursor, 0, sizeof(*cursor)); if (w > 16) w = 16; @@ -74,11 +74,11 @@ bytes = (w+7)/8; for ( row=0; row<h; ++row ) { - memcpy(&cursor->curs.data[row], data, bytes); + SDL_memcpy(&cursor->curs.data[row], data, bytes); data += bytes; } for ( row=0; row<h; ++row ) { - memcpy(&cursor->curs.mask[row], mask, bytes); + SDL_memcpy(&cursor->curs.mask[row], mask, bytes); mask += bytes; } cursor->curs.hotSpot.h = hot_x;