mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
use WIN_IsWindowsVistaOrGreater() from core/windows for isVistaOrNewer
This commit is contained in:
parent
f7d82e5616
commit
c37c6cbbca
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user