Commit b894bd1a authored by Sam Lantinga's avatar Sam Lantinga

backport from 1.3

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402125
parent 4ab10dce
...@@ -175,8 +175,7 @@ int SDL_VideoInit (const char *driver_name, Uint32 flags) ...@@ -175,8 +175,7 @@ int SDL_VideoInit (const char *driver_name, Uint32 flags)
} }
#endif #endif
for ( i=0; bootstrap[i]; ++i ) { for ( i=0; bootstrap[i]; ++i ) {
if ( SDL_strncmp(bootstrap[i]->name, driver_name, if ( SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
SDL_strlen(bootstrap[i]->name)) == 0 ) {
if ( bootstrap[i]->available() ) { if ( bootstrap[i]->available() ) {
video = bootstrap[i]->create(index); video = bootstrap[i]->create(index);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment