Skip to content

Commit 3fd61b0

Browse files
committed
Updated for SDL style
1 parent 581b614 commit 3fd61b0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/testmessage.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
#endif
2424

2525
/* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
26-
static void
27-
quit(int rc)
26+
static void quit(int rc)
2827
{
2928
SDL_Quit();
3029
/* Let 'main()' return normally */
@@ -33,8 +32,7 @@ quit(int rc)
3332
}
3433
}
3534

36-
static int SDLCALL
37-
button_messagebox(void *eventNumber)
35+
static int SDLCALL button_messagebox(void *eventNumber)
3836
{
3937
int i;
4038
const SDL_MessageBoxButtonData buttons[] = {
@@ -53,7 +51,7 @@ button_messagebox(void *eventNumber)
5351
NULL, /* no parent window */
5452
"Custom MessageBox",
5553
"This is a custom messagebox",
56-
sizeof(buttons) / sizeof(SDL_MessageBoxButtonData),
54+
SDL_arraysize(buttons),
5755
NULL, /* buttons */
5856
NULL /* Default color scheme */
5957
};

0 commit comments

Comments
 (0)