Fixed prototype for SDL_main()
authorSam Lantinga <slouken@libsdl.org>
Tue, 04 Jan 2011 11:39:52 -0800
changeset 49534f40b11e1045
parent 4952 18fe0aded409
child 4954 144d9df7e611
Fixed prototype for SDL_main()
FIXME: Still need to pass some arguments - can we get them from the Java class?
android/project/jni/android-support.cpp
     1.1 --- a/android/project/jni/android-support.cpp	Tue Jan 04 11:39:04 2011 -0800
     1.2 +++ b/android/project/jni/android-support.cpp	Tue Jan 04 11:39:52 2011 -0800
     1.3 @@ -36,7 +36,7 @@
     1.4  jmethodID midEnableFeature;
     1.5  jmethodID midUpdateAudio;
     1.6  
     1.7 -extern "C" int SDL_main();
     1.8 +extern "C" int SDL_main(int argc, char *argv[]);
     1.9  extern "C" int Android_OnKeyDown(int keycode);
    1.10  extern "C" int Android_OnKeyUp(int keycode);
    1.11  extern "C" void Android_SetScreenResolution(int width, int height);
    1.12 @@ -103,7 +103,7 @@
    1.13  
    1.14  	Android_EnableFeature(FEATURE_ACCEL, true);
    1.15  
    1.16 -    SDL_main();
    1.17 +    SDL_main(0, 0);
    1.18  }
    1.19  
    1.20  //Keydown