use WIN_IsWindowsVistaOrGreater() from core/windows for isVistaOrNewer

This commit is contained in:
Ozkan Sezer 2019-07-31 23:37:02 +03:00
parent f7d82e5616
commit c37c6cbbca

View File

@ -1160,14 +1160,6 @@ struct SDL_WIN_OSVERSIONINFOW {
WCHAR szCSDVersion[128];
};
static SDL_bool
IsWinVistaOrNewer(void)
{
DWORD version = GetVersion();
DWORD major = (DWORD)(LOBYTE(LOWORD(version)));
return (major >= 6)? SDL_TRUE : SDL_FALSE;
}
static SDL_bool
IsWin10FCUorNewer(void)
{
@ -1256,7 +1248,7 @@ SDL_RegisterApp(char *name, Uint32 style, void *hInst)
return SDL_SetError("Couldn't register application class");
}
isVistaOrNewer = IsWinVistaOrNewer();
isVistaOrNewer = WIN_IsWindowsVistaOrGreater();
isWin10FCUorNewer = IsWin10FCUorNewer();
app_registered = 1;