Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
use WIN_IsWindowsVistaOrGreater() from core/windows for isVistaOrNewer
- Loading branch information
Showing
with
1 addition
and
9 deletions.
-
+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; |
|
|