Make sure we shut down the app if SDL_main() returns instead of exiting.
1.1 --- a/src/main/android/SDL_android_main.cpp Thu Jan 13 15:10:17 2011 -0800
1.2 +++ b/src/main/android/SDL_android_main.cpp Thu Jan 13 17:13:00 2011 -0800
1.3 @@ -23,8 +23,14 @@
1.4 SDL_Android_Init(env, cls);
1.5
1.6 /* Run the application code! */
1.7 + int status;
1.8 char *argv[2];
1.9 argv[0] = strdup("SDL_app");
1.10 argv[1] = NULL;
1.11 - SDL_main(1, argv);
1.12 + status = SDL_main(1, argv);
1.13 +
1.14 + /* We exit here for consistency with other platforms. */
1.15 + exit(status);
1.16 }
1.17 +
1.18 +/* vi: set ts=4 sw=4 expandtab: */