src/video/windowsrt/SDL_winrtvideo.c
changeset 8328 88b08ad81bf7
parent 8327 bc51589f33dc
equal deleted inserted replaced
8327:bc51589f33dc 8328:88b08ad81bf7
    48 /* WinRT driver bootstrap functions */
    48 /* WinRT driver bootstrap functions */
    49 
    49 
    50 static int
    50 static int
    51 WINRT_Available(void)
    51 WINRT_Available(void)
    52 {
    52 {
    53     const char *envr = SDL_getenv("SDL_VIDEODRIVER");
    53     return (1);
    54     if ((envr) && (SDL_strcmp(envr, WINRTVID_DRIVER_NAME) == 0)) {
       
    55         return (1);
       
    56     }
       
    57 
       
    58     return (0);
       
    59 }
    54 }
    60 
    55 
    61 static void
    56 static void
    62 WINRT_DeleteDevice(SDL_VideoDevice * device)
    57 WINRT_DeleteDevice(SDL_VideoDevice * device)
    63 {
    58 {