From a7bed810b3499d157655ae6dcc7cd5e8a34fa549 Mon Sep 17 00:00:00 2001 From: SDL Wiki Bot Date: Sat, 17 Aug 2024 06:30:02 +0000 Subject: [PATCH] Sync SDL3 wiki -> header --- docs/README-main-functions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README-main-functions.md b/docs/README-main-functions.md index 1e02a96b9..98bf888a3 100644 --- a/docs/README-main-functions.md +++ b/docs/README-main-functions.md @@ -137,7 +137,7 @@ functions: First: ```c -int SDL_AppInit(void **appstate, int argc, char **argv); +SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv); ``` This will be called _once_ before anything else. argc/argv work like they @@ -158,7 +158,7 @@ calls. Then: ```c -int SDL_AppIterate(void *appstate); +SDL_AppResult SDL_AppIterate(void *appstate); ``` This is called over and over, possibly at the refresh rate of the display or @@ -178,7 +178,7 @@ not check the event queue in this function (SDL_AppEvent exists for that). Next: ```c -int SDL_AppEvent(void *appstate, const SDL_Event *event); +SDL_AppResult SDL_AppEvent(void *appstate, const SDL_Event *event); ``` This will be called whenever an SDL event arrives. Your app should not call