comparison src/video/SDL_video.c @ 3882:842b03d703c5 SDL-1.2

backport from 1.3
author Sam Lantinga <slouken@libsdl.org>
date Sun, 01 Oct 2006 02:30:03 +0000
parents eacc5bc01d1c
children 6d2e1961661a
comparison
equal deleted inserted replaced
3881:c1b6bb5205f1 3882:842b03d703c5
173 if ( SDL_strrchr(driver_name, ':') != NULL ) { 173 if ( SDL_strrchr(driver_name, ':') != NULL ) {
174 index = atoi(SDL_strrchr(driver_name, ':')+1); 174 index = atoi(SDL_strrchr(driver_name, ':')+1);
175 } 175 }
176 #endif 176 #endif
177 for ( i=0; bootstrap[i]; ++i ) { 177 for ( i=0; bootstrap[i]; ++i ) {
178 if ( SDL_strncmp(bootstrap[i]->name, driver_name, 178 if ( SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
179 SDL_strlen(bootstrap[i]->name)) == 0 ) {
180 if ( bootstrap[i]->available() ) { 179 if ( bootstrap[i]->available() ) {
181 video = bootstrap[i]->create(index); 180 video = bootstrap[i]->create(index);
182 break; 181 break;
183 } 182 }
184 } 183 }