Skip to content

Commit

Permalink
Fixed problems with mouse cursor clipping caused by treading ClipRect…
Browse files Browse the repository at this point in the history
… as thread-local instead of global
  • Loading branch information
Kaldaien committed Dec 29, 2024
1 parent 494e6fd commit f707b89
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions include/SpecialK/DLL_VERSION.H
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit f707b89

Please sign in to comment.