Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Replaced strncmp for SDL_VIDEODRIVER test with strcasecmp
  • Loading branch information
slouken committed Oct 1, 2006
1 parent dfe494b commit a3f68ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/video/SDL_video.c
Expand Up @@ -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);
}
Expand Down
4 changes: 4 additions & 0 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -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"
Expand Down

0 comments on commit a3f68ff

Please sign in to comment.