comparison src/video/SDL_video.c @ 2046:da8332c8f480

Replaced strncmp for SDL_VIDEODRIVER test with strcasecmp
author Sam Lantinga <slouken@libsdl.org>
date Sun, 01 Oct 2006 02:28:41 +0000
parents 8055185ae4ed
children c9aa6bcb26f3
comparison
equal deleted inserted replaced
2045:510892a215a2 2046:da8332c8f480
196 if (driver_name == NULL) { 196 if (driver_name == NULL) {
197 driver_name = SDL_getenv("SDL_VIDEODRIVER"); 197 driver_name = SDL_getenv("SDL_VIDEODRIVER");
198 } 198 }
199 if (driver_name != NULL) { 199 if (driver_name != NULL) {
200 for (i = 0; bootstrap[i]; ++i) { 200 for (i = 0; bootstrap[i]; ++i) {
201 if (SDL_strncmp(bootstrap[i]->name, driver_name, 201 if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
202 SDL_strlen(bootstrap[i]->name)) == 0) {
203 if (bootstrap[i]->available()) { 202 if (bootstrap[i]->available()) {
204 video = bootstrap[i]->create(index); 203 video = bootstrap[i]->create(index);
205 } 204 }
206 break; 205 break;
207 } 206 }