mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-02 12:04:41 +00:00
main: Make the main callback return value symbols smaller (thanks, @Lzard!).
Reference #9901.
This commit is contained in:
@@ -63,7 +63,7 @@ int SDL_AppIterate(void *appstate)
|
||||
}
|
||||
SDL_RenderPresent(renderer);
|
||||
}
|
||||
return SDL_MAIN_CALLBACK_CONTINUE;
|
||||
return SDL_APP_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 SDL_MAIN_CALLBACK_EXIT_FAILURE;
|
||||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
/* Enable standard application logging */
|
||||
@@ -107,10 +107,10 @@ int SDL_AppInit(void **appstate, int argc, char *argv[]) {
|
||||
*appstate = dialog;
|
||||
|
||||
dialog->state = state;
|
||||
return SDL_MAIN_CALLBACK_CONTINUE;
|
||||
return SDL_APP_CONTINUE;
|
||||
onerror:
|
||||
SDLTest_CommonQuit(state);
|
||||
return SDL_MAIN_CALLBACK_EXIT_FAILURE;
|
||||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
void SDL_AppQuit(void *appstate)
|
||||
|
||||
Reference in New Issue
Block a user