src/video/SDL_video.c
changeset 1909 8f1ab2f7c722
parent 1907 06c27a737b7a
child 1912 8d384b647307
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()) {