diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -17,7 +17,7 @@ SDL_Renderer* renderer; application_state app_state; -SDL_AppResult SDL_AppInit(void**, int, char**) { +SDL_AppResult SDL_AppInit(void** userdata, int nargs, char** argc) { SDL_Init(SDL_INIT_VIDEO); srand(time(NULL)); @@ -32,7 +32,7 @@ SDL_AppResult SDL_AppInit(void**, int, char**) { return SDL_APP_CONTINUE; } -SDL_AppResult SDL_AppEvent(void*, SDL_Event* e) { +SDL_AppResult SDL_AppEvent(void* userdata, SDL_Event* e) { if (e->type == SDL_EVENT_QUIT) { return SDL_APP_SUCCESS; } @@ -49,7 +49,7 @@ SDL_AppResult SDL_AppEvent(void*, SDL_Event* e) { return SDL_APP_CONTINUE; } -SDL_AppResult SDL_AppIterate(void*) { +SDL_AppResult SDL_AppIterate(void* userdata) { static uint64_t then = 0, now = 0; then = now; @@ -72,7 +72,7 @@ SDL_AppResult SDL_AppIterate(void*) { return SDL_APP_CONTINUE; } -void SDL_AppQuit(void*, SDL_AppResult) { +void SDL_AppQuit(void* userdata, SDL_AppResult result) { SDL_DestroyWindow(window); SDL_DestroyRenderer(renderer); |
