parent
6a7f8b74f1
commit
1787d6ca5c
37 changed files with 48 additions and 42 deletions
|
@ -127,7 +127,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
|||
return fillerup();
|
||||
}
|
||||
|
||||
void SDL_AppQuit(void *appstate)
|
||||
void SDL_AppQuit(void *appstate, SDL_AppResult result)
|
||||
{
|
||||
SDL_DestroyAudioStream(stream);
|
||||
SDL_free(wave.sound);
|
||||
|
|
|
@ -1256,7 +1256,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
|||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
void SDL_AppQuit(void *appstate)
|
||||
void SDL_AppQuit(void *appstate, SDL_AppResult result)
|
||||
{
|
||||
while (things) {
|
||||
DestroyThing(things); /* make sure all the audio devices are closed, etc. */
|
||||
|
|
|
@ -196,7 +196,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
|||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
void SDL_AppQuit(void *appstate)
|
||||
void SDL_AppQuit(void *appstate, SDL_AppResult result)
|
||||
{
|
||||
SDL_Log("Shutting down.\n");
|
||||
const SDL_AudioDeviceID devid_in = SDL_GetAudioStreamDevice(stream_in);
|
||||
|
|
|
@ -353,7 +353,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
|||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
void SDL_AppQuit(void *appstate)
|
||||
void SDL_AppQuit(void *appstate, SDL_AppResult result)
|
||||
{
|
||||
SDL_ReleaseCameraFrame(camera, frame_current);
|
||||
SDL_CloseCamera(camera);
|
||||
|
|
|
@ -114,7 +114,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
|||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
void SDL_AppQuit(void *appstate)
|
||||
void SDL_AppQuit(void *appstate, SDL_AppResult result)
|
||||
{
|
||||
dropfile_dialog *dialog = appstate;
|
||||
if (dialog) {
|
||||
|
|
|
@ -110,7 +110,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
|||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
void SDL_AppQuit(void *appstate)
|
||||
void SDL_AppQuit(void *appstate, SDL_AppResult result)
|
||||
{
|
||||
/* Print out some timing information */
|
||||
const Uint64 now = SDL_GetTicks();
|
||||
|
|
|
@ -273,7 +273,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
|||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
void SDL_AppQuit(void *appstate)
|
||||
void SDL_AppQuit(void *appstate, SDL_AppResult result)
|
||||
{
|
||||
Pen *i, *next;
|
||||
for (i = pens.next; i != NULL; i = next) {
|
||||
|
|
|
@ -42,7 +42,7 @@ static bool suspend_when_occluded;
|
|||
/* -1: infinite random moves (default); >=0: enables N deterministic moves */
|
||||
static int iterations = -1;
|
||||
|
||||
void SDL_AppQuit(void *appstate)
|
||||
void SDL_AppQuit(void *appstate, SDL_AppResult result)
|
||||
{
|
||||
SDL_free(sprites);
|
||||
SDL_free(positions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue