src/core/android/SDL_android.c
changeset 12012 6de756c9975a
parent 12008 91f9b8f22b17
child 12024 3688283680b1
     1.1 --- a/src/core/android/SDL_android.c	Thu Jun 07 10:54:54 2018 -0700
     1.2 +++ b/src/core/android/SDL_android.c	Thu Jun 07 17:07:03 2018 -0700
     1.3 @@ -76,7 +76,8 @@
     1.4  
     1.5  JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeResize)(
     1.6          JNIEnv* env, jclass jcls,
     1.7 -        jint width, jint height, jint format, jfloat rate);
     1.8 +        jint surfaceWidth, jint surfaceHeight,
     1.9 +		jint deviceWidth, jint deviceHeight, jint format, jfloat rate);
    1.10  
    1.11  JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeSurfaceChanged)(
    1.12          JNIEnv* env, jclass jcls);
    1.13 @@ -518,9 +519,10 @@
    1.14  /* Resize */
    1.15  JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeResize)(
    1.16                                      JNIEnv* env, jclass jcls,
    1.17 -                                    jint width, jint height, jint format, jfloat rate)
    1.18 +                                    jint surfaceWidth, jint surfaceHeight,
    1.19 +									jint deviceWidth, jint deviceHeight, jint format, jfloat rate)
    1.20  {
    1.21 -    Android_SetScreenResolution(width, height, format, rate);
    1.22 +    Android_SetScreenResolution(surfaceWidth, surfaceHeight, deviceWidth, deviceHeight, format, rate);
    1.23  }
    1.24  
    1.25  /* Paddown */