# HG changeset patch # User Sam Lantinga # Date 1159669721 0 # Node ID da8332c8f480619415ff58afa75788ff1c5975f1 # Parent 510892a215a254650f7b9fb37a784678503cb7f5 Replaced strncmp for SDL_VIDEODRIVER test with strcasecmp diff -r 510892a215a2 -r da8332c8f480 src/video/SDL_video.c --- a/src/video/SDL_video.c Sun Oct 01 02:06:37 2006 +0000 +++ b/src/video/SDL_video.c Sun Oct 01 02:28:41 2006 +0000 @@ -198,8 +198,7 @@ } 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); } diff -r 510892a215a2 -r da8332c8f480 src/video/x11/SDL_x11events.c --- a/src/video/x11/SDL_x11events.c Sun Oct 01 02:06:37 2006 +0000 +++ b/src/video/x11/SDL_x11events.c Sun Oct 01 02:28:41 2006 +0000 @@ -21,6 +21,10 @@ */ #include "SDL_config.h" +#include +#include +#include + #include "SDL_syswm.h" #include "SDL_x11video.h" #include "../../events/SDL_events_c.h"