Kaynağa Gözat

Android: Fixed up drop events for new interface.

Ryan C. Gordon 10 yıl önce
ebeveyn
işleme
881ccccbcf
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      src/core/android/SDL_android.c

+ 2 - 1
src/core/android/SDL_android.c

@@ -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 */