Commit ede653d2 authored by Sam Lantinga's avatar Sam Lantinga

Replaced strncmp for SDL_VIDEODRIVER test with strcasecmp

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402124
parent f9b43fac
...@@ -198,8 +198,7 @@ SDL_VideoInit(const char *driver_name, Uint32 flags) ...@@ -198,8 +198,7 @@ SDL_VideoInit(const char *driver_name, Uint32 flags)
} }
if (driver_name != NULL) { if (driver_name != NULL) {
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);
} }
......
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
*/ */
#include "SDL_config.h" #include "SDL_config.h"
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include "SDL_syswm.h" #include "SDL_syswm.h"
#include "SDL_x11video.h" #include "SDL_x11video.h"
#include "../../events/SDL_events_c.h" #include "../../events/SDL_events_c.h"
......
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