SDL_EventFilter functions now return SDL_bool
This commit is contained in:
@@ -69,7 +69,7 @@ static void SDL_DispatchMainCallbackEvents(void)
|
||||
}
|
||||
}
|
||||
|
||||
static int SDLCALL SDL_MainCallbackEventWatcher(void *userdata, SDL_Event *event)
|
||||
static SDL_bool SDLCALL SDL_MainCallbackEventWatcher(void *userdata, SDL_Event *event)
|
||||
{
|
||||
if (ShouldDispatchImmediately(event)) {
|
||||
// Make sure any currently queued events are processed then dispatch this before continuing
|
||||
@@ -78,7 +78,7 @@ static int SDLCALL SDL_MainCallbackEventWatcher(void *userdata, SDL_Event *event
|
||||
} else {
|
||||
// We'll process this event later from the main event queue
|
||||
}
|
||||
return 0;
|
||||
return SDL_TRUE;
|
||||
}
|
||||
|
||||
SDL_bool SDL_HasMainCallbacks(void)
|
||||
|
||||
Reference in New Issue
Block a user