main: SDL_AppQuit() now reports the result value.

Fixes #10994.
This commit is contained in:
Ryan C. Gordon 2024-09-29 22:17:11 -04:00
parent 6a7f8b74f1
commit 1787d6ca5c
37 changed files with 48 additions and 42 deletions

View file

@ -59,7 +59,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View file

@ -86,7 +86,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View file

@ -84,7 +84,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View file

@ -109,7 +109,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View file

@ -103,7 +103,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
/* SDL will clean up the window/renderer for us. */
}

View file

@ -117,7 +117,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View file

@ -99,7 +99,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View file

@ -103,7 +103,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View file

@ -100,7 +100,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View file

@ -156,7 +156,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View file

@ -124,7 +124,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View file

@ -126,7 +126,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View file

@ -127,7 +127,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(texture);
/* SDL will clean up the window/renderer for us. */

View file

@ -167,7 +167,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* This function runs once at shutdown. */
void SDL_AppQuit(void *appstate)
void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
SDL_DestroyTexture(converted_texture);
SDL_DestroyTexture(texture);