mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-17 07:16:00 +00:00
SDLTest_CommonEvent: only set done when it is finished
This commit is contained in:

committed by
Anonymous Maarten

parent
220340e944
commit
c8372e20d6
@@ -2429,7 +2429,9 @@ int SDLTest_CommonEventMainCallbacks(SDLTest_CommonState *state, const SDL_Event
|
||||
|
||||
void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done)
|
||||
{
|
||||
*done = SDLTest_CommonEventMainCallbacks(state, event) ? 1 : 0;
|
||||
if (SDLTest_CommonEventMainCallbacks(state, event)) {
|
||||
*done = 1;
|
||||
}
|
||||
}
|
||||
|
||||
void SDLTest_CommonQuit(SDLTest_CommonState *state)
|
||||
|
Reference in New Issue
Block a user