Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzWM.m @ 1756:eed7a3f396ce
Using the SDL C runtime functions
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 01 May 2006 11:07:04 +0000 |
parents | ef4a796e7f24 |
children | 9c882e94b545 |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzWM.m Mon May 01 07:23:46 2006 +0000 +++ b/src/video/quartz/SDL_QuartzWM.m Mon May 01 11:07:04 2006 +0000 @@ -41,12 +41,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; @@ -57,11 +57,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;