Added the timerID to the SDL timer callback
Fixes https://github.com/libsdl-org/SDL/issues/2593
This commit is contained in:
1 parent
a5b0041b4a
commit
b6360516e4
7 files changed
+53
-42
No files matched your search
+1
-1
@@ -100,7 +100,7 @@ Run(void *data)
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
static Uint32 hit_timeout(Uint32 interval, void *param) {
|
||||
static Uint32 hit_timeout(void *param, SDL_TimerID timerID, Uint32 interval) {
|
||||
SDL_Log("Hit timeout! Sending SIGINT!");
|
||||
(void)raise(SIGINT);
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user