File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 23
23
#endif
24
24
25
25
/* 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 )
28
27
{
29
28
SDL_Quit ();
30
29
/* Let 'main()' return normally */
@@ -33,8 +32,7 @@ quit(int rc)
33
32
}
34
33
}
35
34
36
- static int SDLCALL
37
- button_messagebox (void * eventNumber )
35
+ static int SDLCALL button_messagebox (void * eventNumber )
38
36
{
39
37
int i ;
40
38
const SDL_MessageBoxButtonData buttons [] = {
@@ -53,7 +51,7 @@ button_messagebox(void *eventNumber)
53
51
NULL , /* no parent window */
54
52
"Custom MessageBox" ,
55
53
"This is a custom messagebox" ,
56
- sizeof (buttons ) / sizeof ( SDL_MessageBoxButtonData ),
54
+ SDL_arraysize (buttons ),
57
55
NULL , /* buttons */
58
56
NULL /* Default color scheme */
59
57
};
You can’t perform that action at this time.
0 commit comments