Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed prototype for SDL_main()
Browse files Browse the repository at this point in the history
FIXME: Still need to pass some arguments - can we get them from the Java class?
  • Loading branch information
slouken committed Jan 4, 2011
1 parent 9cb8e21 commit aa0d0ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/project/jni/android-support.cpp
Expand Up @@ -36,7 +36,7 @@ jmethodID midFlipBuffers;
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);
Expand Down Expand Up @@ -103,7 +103,7 @@ extern "C" void Java_org_libsdl_app_SDLActivity_nativeInit( JNIEnv* env,

Android_EnableFeature(FEATURE_ACCEL, true);

SDL_main();
SDL_main(0, 0);
}

//Keydown
Expand Down

0 comments on commit aa0d0ea

Please sign in to comment.