Mercurial > sdl-ios-xcode
diff src/SDL.c @ 1909:8f1ab2f7c722
Look at environment variables in SDL_VideoInit() and SDL_AudioInit()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 15 Jul 2006 19:30:18 +0000 |
parents | c121d94672cb |
children | 3f73c88c9abb f1d07ba2e275 0906692aa6a4 |
line wrap: on
line diff
--- a/src/SDL.c Sat Jul 15 19:29:42 2006 +0000 +++ b/src/SDL.c Sat Jul 15 19:30:18 2006 +0000 @@ -62,8 +62,7 @@ #if !SDL_VIDEO_DISABLED /* Initialize the video/event subsystem */ if ((flags & SDL_INIT_VIDEO) && !(SDL_initialized & SDL_INIT_VIDEO)) { - if (SDL_VideoInit(SDL_getenv("SDL_VIDEODRIVER"), - (flags & SDL_INIT_EVENTTHREAD)) < 0) { + if (SDL_VideoInit(NULL, (flags & SDL_INIT_EVENTTHREAD)) < 0) { return (-1); } SDL_initialized |= SDL_INIT_VIDEO; @@ -78,7 +77,7 @@ #if !SDL_AUDIO_DISABLED /* Initialize the audio subsystem */ if ((flags & SDL_INIT_AUDIO) && !(SDL_initialized & SDL_INIT_AUDIO)) { - if (SDL_AudioInit(SDL_getenv("SDL_AUDIODRIVER")) < 0) { + if (SDL_AudioInit(NULL) < 0) { return (-1); } SDL_initialized |= SDL_INIT_AUDIO;