The window is changed to reflect the actual screen dimensions, for now.

Implemented SDL_SetWindowTitle(), which turned out to be fairly complex
This commit is contained in:
Sam Lantinga 2011-01-13 15:10:17 -08:00
parent 82e985a8ba
commit 9fa1d4876d
8 changed files with 180 additions and 43 deletions

View file

@ -8,7 +8,7 @@
#include <jni.h>
// Called before SDL_main() to initialize JNI bindings in SDL library
extern "C" void SDL_Android_Init(JNIEnv* env);
extern "C" void SDL_Android_Init(JNIEnv* env, jclass cls);
// Library init
extern "C" jint JNI_OnLoad(JavaVM* vm, void* reserved)
@ -17,10 +17,10 @@ extern "C" jint JNI_OnLoad(JavaVM* vm, void* reserved)
}
// Start up the SDL app
extern "C" void Java_org_libsdl_app_SDLActivity_nativeInit( JNIEnv* env, jobject obj )
extern "C" void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject obj)
{
/* This interface could expand with ABI negotiation, calbacks, etc. */
SDL_Android_Init(env);
SDL_Android_Init(env, cls);
/* Run the application code! */
char *argv[2];