Mercurial > sdl-ios-xcode
diff src/video/ataricommon/SDL_atarigl.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 | cbdb2c156aca |
children | 604d73db6802 |
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_atarigl.c Mon Feb 06 17:28:04 2006 +0000 +++ b/src/video/ataricommon/SDL_atarigl.c Tue Feb 07 06:59:48 2006 +0000 @@ -141,7 +141,7 @@ handle = SDL_LoadObject(path); if (handle == NULL) { /* Try to load another one */ - path = getenv("SDL_VIDEO_GL_DRIVER"); + path = SDL_getenv("SDL_VIDEO_GL_DRIVER"); if ( path != NULL ) { handle = SDL_LoadObject(path); } @@ -223,10 +223,10 @@ this->gl_config.dll_handle = handle; if ( path ) { - strncpy(this->gl_config.driver_path, path, + SDL_strncpy(this->gl_config.driver_path, path, sizeof(this->gl_config.driver_path)-1); } else { - strcpy(this->gl_config.driver_path, ""); + SDL_strcpy(this->gl_config.driver_path, ""); } #endif @@ -697,7 +697,7 @@ } for (y=0; y<surface->h; y++) { - memcpy(dstline, srcline, srcpitch); + SDL_memcpy(dstline, srcline, srcpitch); srcline += srcpitch; dstline += dstpitch;