backport from 1.3 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 01 Oct 2006 02:30:03 +0000
branchSDL-1.2
changeset 3882842b03d703c5
parent 3881 c1b6bb5205f1
child 3883 cfe850b334e7
backport from 1.3
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Sun Oct 01 02:07:09 2006 +0000
     1.2 +++ b/src/video/SDL_video.c	Sun Oct 01 02:30:03 2006 +0000
     1.3 @@ -175,8 +175,7 @@
     1.4  		}
     1.5  #endif
     1.6  		for ( i=0; bootstrap[i]; ++i ) {
     1.7 -			if ( SDL_strncmp(bootstrap[i]->name, driver_name,
     1.8 -			             SDL_strlen(bootstrap[i]->name)) == 0 ) {
     1.9 +			if ( SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
    1.10  				if ( bootstrap[i]->available() ) {
    1.11  					video = bootstrap[i]->create(index);
    1.12  					break;