backport from 1.3

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2006-10-01 02:30:03 +00:00
parent 12ac461082
commit 269d54fdff

View File

@@ -175,8 +175,7 @@ int SDL_VideoInit (const char *driver_name, Uint32 flags)
}
#endif
for ( i=0; bootstrap[i]; ++i ) {
if ( SDL_strncmp(bootstrap[i]->name, driver_name,
SDL_strlen(bootstrap[i]->name)) == 0 ) {
if ( SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
if ( bootstrap[i]->available() ) {
video = bootstrap[i]->create(index);
break;