comparison 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
comparison
equal deleted inserted replaced
1908:e079dafea2bf 1909:8f1ab2f7c722
199 } 199 }
200 200
201 /* Select the proper video driver */ 201 /* Select the proper video driver */
202 index = 0; 202 index = 0;
203 video = NULL; 203 video = NULL;
204 if (driver_name == NULL) {
205 driver_name = SDL_getenv("SDL_VIDEODRIVER");
206 }
204 if (driver_name != NULL) { 207 if (driver_name != NULL) {
205 for (i = 0; bootstrap[i]; ++i) { 208 for (i = 0; bootstrap[i]; ++i) {
206 if (SDL_strncmp(bootstrap[i]->name, driver_name, 209 if (SDL_strncmp(bootstrap[i]->name, driver_name,
207 SDL_strlen(bootstrap[i]->name)) == 0) { 210 SDL_strlen(bootstrap[i]->name)) == 0) {
208 if (bootstrap[i]->available()) { 211 if (bootstrap[i]->available()) {