# HG changeset patch # User Sam Lantinga # Date 1294169992 28800 # Node ID 4f40b11e10450d661f7998f98717f2995c8110db # Parent 18fe0aded40904a1ef2e5850cd2609b1353dc2d5 Fixed prototype for SDL_main() FIXME: Still need to pass some arguments - can we get them from the Java class? diff -r 18fe0aded409 -r 4f40b11e1045 android/project/jni/android-support.cpp --- 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