src/video/SDL_video.c
changeset 7508 1f64c6874619
parent 7493 7bfda8f0bfdf
child 7523 9e9ab1dc3811
     1.1 --- a/src/video/SDL_video.c	Tue Jul 23 17:38:59 2013 -0700
     1.2 +++ b/src/video/SDL_video.c	Tue Jul 23 17:40:13 2013 -0700
     1.3 @@ -3062,8 +3062,11 @@
     1.4      }
     1.5  
     1.6      SDL_VERSION(&info.version);
     1.7 -    SDL_GetWindowWMInfo(window, &info);
     1.8 -    return (info.subsystem == drivertype);
     1.9 +    if (!SDL_GetWindowWMInfo(window, &info)) {
    1.10 +        return SDL_TRUE;
    1.11 +    } else {
    1.12 +        return (info.subsystem == drivertype);
    1.13 +    }
    1.14  }
    1.15  
    1.16  int