|
@@ -51,7 +51,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
|
|
|
}
|
|
|
|
|
|
/* This function runs when a new event (mouse input, keypresses, etc) occurs. */
|
|
|
-SDL_AppResult SDL_AppEvent(void *appstate, const SDL_Event *event)
|
|
|
+SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event)
|
|
|
{
|
|
|
if (event->type == SDL_EVENT_QUIT) {
|
|
|
return SDL_APP_SUCCESS; /* end the program, reporting success to the OS. */
|