mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-17 08:48:12 +00:00
Tests: Use the main callback code macros
This commit is contained in:
@@ -63,7 +63,7 @@ int SDL_AppIterate(void *appstate)
|
||||
}
|
||||
SDL_RenderPresent(renderer);
|
||||
}
|
||||
return 0; /* keep going */
|
||||
return SDL_MAIN_CALLBACK_CONTINUE;
|
||||
}
|
||||
|
||||
int SDL_AppInit(void **appstate, int argc, char *argv[]) {
|
||||
@@ -74,7 +74,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[]) {
|
||||
/* Initialize test framework */
|
||||
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
|
||||
if (!state) {
|
||||
return -1; /* terminate with an error */
|
||||
return SDL_MAIN_CALLBACK_EXIT_FAILURE;
|
||||
}
|
||||
|
||||
/* Enable standard application logging */
|
||||
@@ -107,10 +107,10 @@ int SDL_AppInit(void **appstate, int argc, char *argv[]) {
|
||||
*appstate = dialog;
|
||||
|
||||
dialog->state = state;
|
||||
return 0; /* continue */
|
||||
return SDL_MAIN_CALLBACK_CONTINUE;
|
||||
onerror:
|
||||
SDLTest_CommonQuit(state);
|
||||
return -1; /* terminate with an error */
|
||||
return SDL_MAIN_CALLBACK_EXIT_FAILURE;
|
||||
}
|
||||
|
||||
void SDL_AppQuit(void *appstate)
|
||||
|
Reference in New Issue
Block a user