use WIN_IsWindowsVistaOrGreater() from core/windows for isVistaOrNewer
authorOzkan Sezer <sezeroz@gmail.com>
Wed, 31 Jul 2019 23:37:02 +0300
changeset 1297607104eac00fb
parent 12974 0fef4b21fa1d
child 12978 d2e027c5a389
use WIN_IsWindowsVistaOrGreater() from core/windows for isVistaOrNewer
src/video/windows/SDL_windowsevents.c
     1.1 --- a/src/video/windows/SDL_windowsevents.c	Wed Jul 31 12:20:55 2019 -0400
     1.2 +++ b/src/video/windows/SDL_windowsevents.c	Wed Jul 31 23:37:02 2019 +0300
     1.3 @@ -1161,14 +1161,6 @@
     1.4  };
     1.5  
     1.6  static SDL_bool
     1.7 -IsWinVistaOrNewer(void)
     1.8 -{
     1.9 -    DWORD version = GetVersion();
    1.10 -    DWORD major = (DWORD)(LOBYTE(LOWORD(version)));
    1.11 -    return (major >= 6)? SDL_TRUE : SDL_FALSE;
    1.12 -}
    1.13 -
    1.14 -static SDL_bool
    1.15  IsWin10FCUorNewer(void)
    1.16  {
    1.17      HMODULE handle = GetModuleHandleW(L"ntdll.dll");
    1.18 @@ -1256,7 +1248,7 @@
    1.19          return SDL_SetError("Couldn't register application class");
    1.20      }
    1.21  
    1.22 -    isVistaOrNewer = IsWinVistaOrNewer();
    1.23 +    isVistaOrNewer = WIN_IsWindowsVistaOrGreater();
    1.24      isWin10FCUorNewer = IsWin10FCUorNewer();
    1.25  
    1.26      app_registered = 1;