mirror of
https://github.com/joel16/SDL2.git
synced 2025-01-20 18:25:49 +00:00
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:
parent
f9b43fac01
commit
ede653d2cc
@ -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);
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user