mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
SDL_RegisterEvents() now returns 0 if it couldn't allocate any user events.
This commit is contained in:
parent
4d20b82850
commit
860155680d
4 changed files with 5 additions and 12 deletions
|
|
@ -182,7 +182,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
int status = 0;
|
||||
SDL_Event event;
|
||||
intptr_t eventNumber = SDL_RegisterEvents(1);
|
||||
Uint32 eventNumber = SDL_RegisterEvents(1);
|
||||
SDL_Thread *thread = SDL_CreateThread(&button_messagebox, "MessageBox", (void *)eventNumber);
|
||||
|
||||
while (SDL_WaitEvent(&event)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue