mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Dynamically allocate long text for SDL_EVENT_TEXT_INPUT events
This prevents input text from being split across Unicode combining or modifier characters, and in practice allocations will rarely happen.
This commit is contained in:
parent
2a1660ab51
commit
75ea3a8d32
8 changed files with 25 additions and 12 deletions
|
|
@ -1728,6 +1728,7 @@ static void loop(void *arg)
|
|||
AddControllerNameText(event.text.text);
|
||||
}
|
||||
}
|
||||
SDL_CleanupEvent(&event);
|
||||
break;
|
||||
case SDL_EVENT_QUIT:
|
||||
done = SDL_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue