mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-17 14:47:19 +01:00
Android: Fixed up drop events for new interface.
This commit is contained in:
parent
eeb899999f
commit
881ccccbcf
@ -144,8 +144,9 @@ void Java_org_libsdl_app_SDLActivity_onNativeDropFile(
|
||||
jstring filename)
|
||||
{
|
||||
const char *path = (*env)->GetStringUTFChars(env, filename, NULL);
|
||||
SDL_SendDropFile(path);
|
||||
SDL_SendDropFile(NULL, path);
|
||||
(*env)->ReleaseStringUTFChars(env, filename, path);
|
||||
SDL_SendDropComplete(NULL);
|
||||
}
|
||||
|
||||
/* Resize */
|
||||
|
Loading…
Reference in New Issue
Block a user