From 78a83dc1a6afdacff48d21b32c53c0bc5072cb3a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 1 Oct 2006 02:30:03 +0000 Subject: [PATCH] backport from 1.3 --- src/video/SDL_video.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;