backport from 1.3

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402125
This commit is contained in:
Sam Lantinga 2006-10-01 02:30:03 +00:00
parent 4ab10dce94
commit b894bd1a3c

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;