Browse Source

Replaced use of SDL internal header file with the public interface

fysx 12 years ago
parent
commit
2da2da2652
1 changed files with 2 additions and 3 deletions
  1. 2 3
      jni/love/src/common/android.cpp

+ 2 - 3
jni/love/src/common/android.cpp

@@ -22,9 +22,8 @@
 
 #ifdef LOVE_ANDROID
 
-// SDL
-#include "core/android/SDL_android.h"
 #include "SDL.h"
+#include "jni.h"
 
 namespace love
 {
@@ -33,7 +32,7 @@ namespace android
 
 double getScreenScale()
 {
-  JNIEnv *env = Android_JNI_GetEnv();
+  JNIEnv *env = (JNIEnv*) SDL_AndroidGetJNIEnv();
 
   jclass activity = env->FindClass("org/love2d/android/GameActivity");
   jmethodID getMetrics = env->GetStaticMethodID(activity, "getMetrics", "()Landroid/util/DisplayMetrics;");