Fix compile error
This commit is contained in:
parent
7d5c1bb2e4
commit
ef2f720f6b
1 changed files with 4 additions and 2 deletions
|
|
@ -389,7 +389,8 @@ Uint32 SDL2DisplayWindow::ExecTimer(Uint32 interval, void* execID)
|
|||
|
||||
void* SDL2DisplayWindow::StartTimer(int timeoutMilliseconds, std::function<void()> onTimer)
|
||||
{
|
||||
CheckInitSDL();
|
||||
// is this guard needed?
|
||||
// CheckInitSDL();
|
||||
|
||||
void* execID = (void*)(uintptr_t)++TimerIDs;
|
||||
void* id = (void*)(uintptr_t)SDL_AddTimer(timeoutMilliseconds, SDL2DisplayWindow::ExecTimer, execID);
|
||||
|
|
@ -404,7 +405,8 @@ void* SDL2DisplayWindow::StartTimer(int timeoutMilliseconds, std::function<void(
|
|||
|
||||
void SDL2DisplayWindow::StopTimer(void* timerID)
|
||||
{
|
||||
CheckInitSDL();
|
||||
// is this guard needed?
|
||||
// CheckInitSDL();
|
||||
|
||||
SDL_RemoveTimer((SDL_TimerID)(uintptr_t)timerID);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue