From f707b89277e5d40039d83856453069a1ea559794 Mon Sep 17 00:00:00 2001 From: Kaldaien Date: Sat, 28 Dec 2024 19:57:09 -0500 Subject: [PATCH] Fixed problems with mouse cursor clipping caused by treading ClipRect as thread-local instead of global --- CHANGELOG.txt | 14 +++++++++++++- include/SpecialK/DLL_VERSION.H | 6 +++--- src/window.cpp | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ce54f5585..6b29bb916 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,4 +1,16 @@ -24.12.28.4 +24.12.29 +======== + + Improved input neutralization for games that use Overlapped IO to read + HID devices (i.e. SDL2) when blocking input to the game. + + Fixed problems with mouse cursor clipping caused by treading ClipRect + as thread-local instead of global. + +24.12.28.5 +========== + + Updated compiler version; anything broken between 24.12.28.4 and now is + probably a compiler bug. + +24.12.28.4 ========== + Disable dynamic spinlocks feature accidentally enabled for all games in 24.12.28.1. diff --git a/include/SpecialK/DLL_VERSION.H b/include/SpecialK/DLL_VERSION.H index 20f25abbe..164e41915 100644 --- a/include/SpecialK/DLL_VERSION.H +++ b/include/SpecialK/DLL_VERSION.H @@ -2,9 +2,9 @@ #define SK_YEAR 24 #define SK_MONTH 12 -#define SK_DATE 28 -#define SK_REV_N 4 -#define SK_REV 4 +#define SK_DATE 29 +#define SK_REV_N 0 +#define SK_REV 0 #ifndef _A2 #define _A2(a) #a diff --git a/src/window.cpp b/src/window.cpp index 936079f43..93d6ee06e 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -8469,7 +8469,7 @@ SK_ClipCursor (const RECT *lpRect) // // Avoid unnecessary OS calls, since we have the base function hooked already // - static thread_local RECT lastRect = {}; + static RECT lastRect = {}; if ( (nullptr == lpRect && !SK_IsRectInfinite(&lastRect)) || (nullptr != lpRect &&