changeset 4953:4f40b11e1045

Fixed prototype for SDL_main() FIXME: Still need to pass some arguments - can we get them from the Java class?
author Sam Lantinga <slouken@libsdl.org>
date Tue, 04 Jan 2011 11:39:52 -0800
parents 18fe0aded409
children 144d9df7e611
files android/project/jni/android-support.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/android/project/jni/android-support.cpp	Tue Jan 04 11:39:04 2011 -0800
+++ b/android/project/jni/android-support.cpp	Tue Jan 04 11:39:52 2011 -0800
@@ -36,7 +36,7 @@
 jmethodID midEnableFeature;
 jmethodID midUpdateAudio;
 
-extern "C" int SDL_main();
+extern "C" int SDL_main(int argc, char *argv[]);
 extern "C" int Android_OnKeyDown(int keycode);
 extern "C" int Android_OnKeyUp(int keycode);
 extern "C" void Android_SetScreenResolution(int width, int height);
@@ -103,7 +103,7 @@
 
 	Android_EnableFeature(FEATURE_ACCEL, true);
 
-    SDL_main();
+    SDL_main(0, 0);
 }
 
 //Keydown