comparison 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
comparison
equal deleted inserted replaced
1335:c39265384763 1336:3692456e7b0f
139 139
140 /* Load library given by path */ 140 /* Load library given by path */
141 handle = SDL_LoadObject(path); 141 handle = SDL_LoadObject(path);
142 if (handle == NULL) { 142 if (handle == NULL) {
143 /* Try to load another one */ 143 /* Try to load another one */
144 path = getenv("SDL_VIDEO_GL_DRIVER"); 144 path = SDL_getenv("SDL_VIDEO_GL_DRIVER");
145 if ( path != NULL ) { 145 if ( path != NULL ) {
146 handle = SDL_LoadObject(path); 146 handle = SDL_LoadObject(path);
147 } 147 }
148 148
149 /* If it does not work, try some other */ 149 /* If it does not work, try some other */
221 } 221 }
222 } 222 }
223 223
224 this->gl_config.dll_handle = handle; 224 this->gl_config.dll_handle = handle;
225 if ( path ) { 225 if ( path ) {
226 strncpy(this->gl_config.driver_path, path, 226 SDL_strncpy(this->gl_config.driver_path, path,
227 sizeof(this->gl_config.driver_path)-1); 227 sizeof(this->gl_config.driver_path)-1);
228 } else { 228 } else {
229 strcpy(this->gl_config.driver_path, ""); 229 SDL_strcpy(this->gl_config.driver_path, "");
230 } 230 }
231 231
232 #endif 232 #endif
233 this->gl_config.driver_loaded = 1; 233 this->gl_config.driver_loaded = 1;
234 234
695 srcline += (surface->h-1)*srcpitch; 695 srcline += (surface->h-1)*srcpitch;
696 srcpitch = -srcpitch; 696 srcpitch = -srcpitch;
697 } 697 }
698 698
699 for (y=0; y<surface->h; y++) { 699 for (y=0; y<surface->h; y++) {
700 memcpy(dstline, srcline, srcpitch); 700 SDL_memcpy(dstline, srcline, srcpitch);
701 701
702 srcline += srcpitch; 702 srcline += srcpitch;
703 dstline += dstpitch; 703 dstline += dstpitch;
704 } 704 }
705 } 705 }