mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Changed main callback return values to an enumeration
Fixes https://github.com/libsdl-org/SDL/issues/10515
This commit is contained in:
parent
83adcb9d38
commit
438a214420
24 changed files with 180 additions and 207 deletions
|
|
@ -21,7 +21,7 @@ static SDL_AudioStream *stream_in = NULL;
|
|||
static SDL_AudioStream *stream_out = NULL;
|
||||
static SDLTest_CommonState *state = NULL;
|
||||
|
||||
int SDL_AppInit(void **appstate, int argc, char **argv)
|
||||
SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv)
|
||||
{
|
||||
SDL_AudioDeviceID *devices;
|
||||
SDL_AudioSpec outspec;
|
||||
|
|
@ -149,7 +149,7 @@ int SDL_AppInit(void **appstate, int argc, char **argv)
|
|||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
int SDL_AppEvent(void *appstate, const SDL_Event *event)
|
||||
SDL_AppResult SDL_AppEvent(void *appstate, const SDL_Event *event)
|
||||
{
|
||||
if (event->type == SDL_EVENT_QUIT) {
|
||||
return SDL_APP_SUCCESS;
|
||||
|
|
@ -173,7 +173,7 @@ int SDL_AppEvent(void *appstate, const SDL_Event *event)
|
|||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
int SDL_AppIterate(void *appstate)
|
||||
SDL_AppResult SDL_AppIterate(void *appstate)
|
||||
{
|
||||
if (!SDL_AudioDevicePaused(SDL_GetAudioStreamDevice(stream_in))) {
|
||||
SDL_SetRenderDrawColor(renderer, 0, 255, 0, 255);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue