From a8b9de1767613f2e0e763e267979a6d51b4222a4 Mon Sep 17 00:00:00 2001 From: Menase Teshale Date: Thu, 20 Aug 2026 00:50:16 -0700 Subject: Fix windows build --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 726e781..4c138f8 100644 --- a/src/main.c +++ b/src/main.c @@ -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); -- cgit v1.2.3