mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
The parameter to SDL_AppEvent() should be non-const
This allows functions like SDL_ConvertEventToRenderCoordinates() to work without having to copy the event. Fixes https://github.com/libsdl-org/SDL/issues/10691
This commit is contained in:
@@ -70,7 +70,7 @@ onerror:
|
||||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
SDL_AppResult SDL_AppEvent(void *appstate, const SDL_Event *event)
|
||||
SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event)
|
||||
{
|
||||
dropfile_dialog *dialog = appstate;
|
||||
if (event->type == SDL_EVENT_DROP_BEGIN) {
|
||||
|
||||
Reference in New Issue
Block a user