Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

Fixed prototype for SDL_main()

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 aa0d0ea93485e199bdf883b2336d6f1b7465d131
Showing with 2 additions and 2 deletions.
  1. +2 −2 android/project/jni/android-support.cpp
@@ -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);
@@ -103,7 +103,7 @@ extern "C" void Java_org_libsdl_app_SDLActivity_nativeInit( JNIEnv* env,

Android_EnableFeature(FEATURE_ACCEL, true);

SDL_main(0, 0);


0 comments on commit aa0d0ea

Please sign in to comment.