Android: Fixed up drop events for new interface.

This commit is contained in:
Ryan C. Gordon committed 2016-01-05 05:31:33 -05:00
1 parent eeb899999f
commit 881ccccbcf
1 file changed
+2 -1
+2 -1
View File
@@ -144,8 +144,9 @@ void Java_org_libsdl_app_SDLActivity_onNativeDropFile(
jstring filename) jstring filename)
{ {
const char *path = (*env)->GetStringUTFChars(env, filename, NULL); const char *path = (*env)->GetStringUTFChars(env, filename, NULL);
SDL_SendDropFile(path); SDL_SendDropFile(NULL, path);
(*env)->ReleaseStringUTFChars(env, filename, path); (*env)->ReleaseStringUTFChars(env, filename, path);
SDL_SendDropComplete(NULL);
} }
/* Resize */ /* Resize */