Skip to content

Commit

Permalink
Revert win32 fix for timer
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Dec 8, 2024
1 parent 58877c0 commit 36664e2
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ class PlatformTimer final
{
jassert (newIntervalMs > 0);

const auto callback = [] (UINT, UINT, DWORD_PTR context, DWORD_PTR, DWORD_PTR) -> void __stdcall
const auto callback = [] (UINT, UINT, DWORD_PTR context, DWORD_PTR, DWORD_PTR)
{
auto* listener = reinterpret_cast<PlatformTimerListener*> (context);
if (listener != nullptr)
listener->handleTimerCallback();
reinterpret_cast<PlatformTimerListener*> (context)->onTimerExpired();
};

timerId = timeSetEvent ((UINT) newIntervalMs, 1, callback, (DWORD_PTR) &listener, TIME_PERIODIC | TIME_CALLBACK_FUNCTION);
Expand Down

0 comments on commit 36664e2

Please sign in to comment.