Mercurial > sdl-ios-xcode
diff src/video/SDL_video.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 | 06c27a737b7a |
children | 8d384b647307 |
line wrap: on
line diff
--- a/src/video/SDL_video.c Sat Jul 15 19:29:42 2006 +0000 +++ b/src/video/SDL_video.c Sat Jul 15 19:30:18 2006 +0000 @@ -201,6 +201,9 @@ /* Select the proper video driver */ index = 0; video = NULL; + if (driver_name == NULL) { + driver_name = SDL_getenv("SDL_VIDEODRIVER"); + } if (driver_name != NULL) { for (i = 0; bootstrap[i]; ++i) { if (SDL_strncmp(bootstrap[i]->name, driver_name,