Browse Source

Android: fix prototype of Android_JNI_InitTouch

Sylvain Becker 6 years ago
parent
commit
b44a7aea8f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/core/android/SDL_android.c
  2. 1 1
      src/core/android/SDL_android.h

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

@@ -2090,7 +2090,7 @@ int Android_JNI_GetPowerInfo(int *plugged, int *charged, int *battery, int *seco
 }
 
 /* Add all touch devices */
-int Android_JNI_InitTouch() {
+void Android_JNI_InitTouch() {
      JNIEnv *env = Android_JNI_GetEnv();
     (*env)->CallStaticVoidMethod(env, mActivityClass, midInitTouch);
 }

+ 1 - 1
src/core/android/SDL_android.h

@@ -93,7 +93,7 @@ void Android_JNI_HapticStop(int device_id);
 void Android_JNI_SuspendScreenSaver(SDL_bool suspend);
 
 /* Touch support */
-int Android_JNI_InitTouch(void);
+void Android_JNI_InitTouch(void);
 void Android_JNI_SetSeparateMouseAndTouch(SDL_bool new_value);
 
 /* Threads */