mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
testmessage.c should report when message boxes were closed.
This commit is contained in:
parent
8bfc622b18
commit
cb60f2dfc2
@ -69,7 +69,7 @@ button_messagebox(void *eventNumber)
|
|||||||
quit(2);
|
quit(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SDL_Log("Pressed button: %d, %s\n", button, button == 1 ? "Cancel" : "OK");
|
SDL_Log("Pressed button: %d, %s\n", button, button == -1 ? "[closed]" : button == 1 ? "Cancel" : "OK");
|
||||||
|
|
||||||
if (eventNumber) {
|
if (eventNumber) {
|
||||||
SDL_UserEvent event;
|
SDL_UserEvent event;
|
||||||
|
Loading…
Reference in New Issue
Block a user