diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 322b2f0e0..db52d48dc 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -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;