mirror of
https://github.com/yawut/SDL.git
synced 2026-08-28 11:45:13 -05:00
backport from 1.3
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -175,8 +175,7 @@ int SDL_VideoInit (const char *driver_name, Uint32 flags)
|
||||
}
|
||||
#endif
|
||||
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);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user