Updated for SDL style
This commit is contained in:
@@ -23,8 +23,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
|
||||||
static void
|
static void quit(int rc)
|
||||||
quit(int rc)
|
|
||||||
{
|
{
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
/* Let 'main()' return normally */
|
/* Let 'main()' return normally */
|
||||||
@@ -33,8 +32,7 @@ quit(int rc)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int SDLCALL
|
static int SDLCALL button_messagebox(void *eventNumber)
|
||||||
button_messagebox(void *eventNumber)
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const SDL_MessageBoxButtonData buttons[] = {
|
const SDL_MessageBoxButtonData buttons[] = {
|
||||||
@@ -53,7 +51,7 @@ button_messagebox(void *eventNumber)
|
|||||||
NULL, /* no parent window */
|
NULL, /* no parent window */
|
||||||
"Custom MessageBox",
|
"Custom MessageBox",
|
||||||
"This is a custom messagebox",
|
"This is a custom messagebox",
|
||||||
sizeof(buttons) / sizeof(SDL_MessageBoxButtonData),
|
SDL_arraysize(buttons),
|
||||||
NULL, /* buttons */
|
NULL, /* buttons */
|
||||||
NULL /* Default color scheme */
|
NULL /* Default color scheme */
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user