Changed main callback return values to an enumeration

Fixes https://github.com/libsdl-org/SDL/issues/10515
This commit is contained in:
Sam Lantinga
2024-08-16 09:54:35 -07:00
parent 83adcb9d38
commit 438a214420
24 changed files with 180 additions and 207 deletions

View File

@@ -34,7 +34,7 @@ static SDL_Texture *white_pixel = NULL;
static Pen pens;
int SDL_AppInit(void **appstate, int argc, char *argv[])
SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
{
int i;
@@ -107,7 +107,7 @@ static Pen *FindPen(SDL_PenID which)
return NULL;
}
int SDL_AppEvent(void *appstate, const SDL_Event *event)
SDL_AppResult SDL_AppEvent(void *appstate, const SDL_Event *event)
{
Pen *pen = NULL;
@@ -259,7 +259,7 @@ static void DrawOnePen(Pen *pen, int num)
}
}
int SDL_AppIterate(void *appstate)
SDL_AppResult SDL_AppIterate(void *appstate)
{
int num = 0;
Pen *pen;