Renamed event memory to temporary memory, since it's not just used for events
This commit is contained in:
parent
c4eac60000
commit
fd9fe1bb7b
9 changed files with 121 additions and 128 deletions
|
@ -778,7 +778,7 @@ int SDL_SendEditingTextCandidates(char **candidates, int num_candidates, int sel
|
|||
event.common.timestamp = 0;
|
||||
event.edit.windowID = keyboard->focus ? keyboard->focus->id : 0;
|
||||
if (num_candidates > 0) {
|
||||
const char **event_candidates = (const char **)SDL_AllocateEventMemory((num_candidates + 1) * sizeof(*event_candidates));
|
||||
const char **event_candidates = (const char **)SDL_AllocateTemporaryMemory((num_candidates + 1) * sizeof(*event_candidates));
|
||||
if (!event_candidates) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue