From: Mikko Rasa Date: Sun, 18 Dec 2022 16:46:30 +0000 (+0200) Subject: Fix Windows version check for touch input X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=479298192e3e5b71a402f79520c90372a4c4b504;p=libs%2Fgui.git Fix Windows version check for touch input --- 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");