mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-24 20:18:29 +00:00
Changed main callback return values to an enumeration
Fixes https://github.com/libsdl-org/SDL/issues/10515
This commit is contained in:
@@ -2090,7 +2090,7 @@ static void FullscreenTo(SDLTest_CommonState *state, int index, int windowId)
|
||||
SDL_free(displays);
|
||||
}
|
||||
|
||||
int SDLTest_CommonEventMainCallbacks(SDLTest_CommonState *state, const SDL_Event *event)
|
||||
SDL_AppResult SDLTest_CommonEventMainCallbacks(SDLTest_CommonState *state, const SDL_Event *event)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -2487,7 +2487,7 @@ int SDLTest_CommonEventMainCallbacks(SDLTest_CommonState *state, const SDL_Event
|
||||
|
||||
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
|
||||
{
|
||||
if (SDLTest_CommonEventMainCallbacks(state, event)) {
|
||||
if (SDLTest_CommonEventMainCallbacks(state, event) != SDL_APP_CONTINUE) {
|
||||
*done = 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user