src/core/android/SDL_android.c
changeset 10032 e661304722ce
parent 9998 f67cf37e9cd4
child 10080 426de7645465
equal deleted inserted replaced
10031:2b3baddd9afa 10032:e661304722ce
   142 void Java_org_libsdl_app_SDLActivity_onNativeDropFile(
   142 void Java_org_libsdl_app_SDLActivity_onNativeDropFile(
   143                                     JNIEnv* env, jclass jcls,
   143                                     JNIEnv* env, jclass jcls,
   144                                     jstring filename)
   144                                     jstring filename)
   145 {
   145 {
   146     const char *path = (*env)->GetStringUTFChars(env, filename, NULL);
   146     const char *path = (*env)->GetStringUTFChars(env, filename, NULL);
   147     SDL_SendDropFile(path);
   147     SDL_SendDropFile(NULL, path);
   148     (*env)->ReleaseStringUTFChars(env, filename, path);
   148     (*env)->ReleaseStringUTFChars(env, filename, path);
       
   149     SDL_SendDropComplete(NULL);
   149 }
   150 }
   150 
   151 
   151 /* Resize */
   152 /* Resize */
   152 JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeResize(
   153 JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeResize(
   153                                     JNIEnv* env, jclass jcls,
   154                                     JNIEnv* env, jclass jcls,