mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-21 14:55:39 +00:00
SDL_RegisterEvents() now returns 0 if it couldn't allocate any user events.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user