Replaced strncmp for SDL_VIDEODRIVER test with strcasecmp

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402124
This commit is contained in:
Sam Lantinga 2006-10-01 02:28:41 +00:00
parent f9b43fac01
commit ede653d2cc
2 changed files with 5 additions and 2 deletions

View File

@ -198,8 +198,7 @@ SDL_VideoInit(const char *driver_name, Uint32 flags)
}
if (driver_name != NULL) {
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);
}

View File

@ -21,6 +21,10 @@
*/
#include "SDL_config.h"
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include "SDL_syswm.h"
#include "SDL_x11video.h"
#include "../../events/SDL_events_c.h"