From 479298192e3e5b71a402f79520c90372a4c4b504 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 18 Dec 2022 18:46:30 +0200 Subject: [PATCH] Fix Windows version check for touch input --- source/graphics/windows/window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/graphics/windows/window.cpp b/source/graphics/windows/window.cpp index e7ec910..0e33653 100644 --- a/source/graphics/windows/window.cpp +++ b/source/graphics/windows/window.cpp @@ -1,7 +1,8 @@ -#define _WIN32_WINNT 0x0601 +#define _WIN32_WINNT 0x0601 // Windows 7 #include "window.h" #include "window_private.h" #include +#include #include #include @@ -141,8 +142,7 @@ void Window::warp_pointer(int, int) void Window::platform_set_touch_input() { - WORD winver = LOWORD(GetVersion); - if(winver<_WIN32_WINNT) + if(!IsWindows7OrGreater()) { touch_input = false; throw runtime_error("no touch support"); -- 2.43.0