Skip to content
Permalink
Browse files

use WIN_IsWindowsVistaOrGreater() from core/windows for isVistaOrNewer

  • Loading branch information
sezero committed Jul 31, 2019
1 parent f7d82e5 commit c37c6cbbca2cfdbe8448ea87f2c945b10b5d5e7e
Showing with 1 addition and 9 deletions.
  1. +1 −9 src/video/windows/SDL_windowsevents.c
@@ -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;

0 comments on commit c37c6cb

Please sign in to comment.