mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 08:36:19 -05:00
Fixed prototype for SDL_main()
FIXME: Still need to pass some arguments - can we get them from the Java class?
This commit is contained in:
@@ -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();
|
||||
SDL_main(0, 0);
|
||||
}
|
||||
|
||||
//Keydown
|
||||
|
||||
Reference in New Issue
Block a user