diff options
| author | Menase Teshale <osome3717@gmail.com> | 2026-08-20 00:50:16 -0700 |
|---|---|---|
| committer | Menase Teshale <osome3717@gmail.com> | 2026-08-20 00:50:16 -0700 |
| commit | a8b9de1767613f2e0e763e267979a6d51b4222a4 (patch) | |
| tree | e46189691ab833d8f4e77ce6d53f13134ec25478 | |
| parent | 7ddea7173d0e743e10329171ba9f796f74fb5fb9 (diff) | |
Fix windows build
| -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); |
