src/video/SDL_video.c
changeset 6900 767690d1c013
parent 6885 700f1b25f77f
child 6936 76d9c31e823d
child 8439 14d94a8a9fb6
equal deleted inserted replaced
6899:f75b1bd8eabc 6900:767690d1c013
   435     if (driver_name == NULL) {
   435     if (driver_name == NULL) {
   436         driver_name = SDL_getenv("SDL_VIDEODRIVER");
   436         driver_name = SDL_getenv("SDL_VIDEODRIVER");
   437     }
   437     }
   438     if (driver_name != NULL) {
   438     if (driver_name != NULL) {
   439         for (i = 0; bootstrap[i]; ++i) {
   439         for (i = 0; bootstrap[i]; ++i) {
   440             if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
   440             if (SDL_strncasecmp(bootstrap[i]->name, driver_name, SDL_strlen(driver_name)) == 0) {
   441                 video = bootstrap[i]->create(index);
   441                 video = bootstrap[i]->create(index);
   442                 break;
   442                 break;
   443             }
   443             }
   444         }
   444         }
   445     } else {
   445     } else {