src/core/android/SDL_android.c
changeset 11665 861f42ecf09a
parent 11662 a996f135cc81
child 11669 1fe21a20aa12
equal deleted inserted replaced
11664:c677bf234773 11665:861f42ecf09a
  1063 
  1063 
  1064     float nativeXdpi = (*env)->GetFloatField(env, jDisplayObj, fidXdpi);
  1064     float nativeXdpi = (*env)->GetFloatField(env, jDisplayObj, fidXdpi);
  1065     float nativeYdpi = (*env)->GetFloatField(env, jDisplayObj, fidYdpi);
  1065     float nativeYdpi = (*env)->GetFloatField(env, jDisplayObj, fidYdpi);
  1066     int nativeDdpi = (*env)->GetIntField(env, jDisplayObj, fidDdpi);
  1066     int nativeDdpi = (*env)->GetIntField(env, jDisplayObj, fidDdpi);
  1067 
  1067 
  1068     *ddpi = (float)nativeDdpi;
  1068 
  1069     *xdpi = nativeXdpi;
  1069     (*env)->DeleteLocalRef(env, jDisplayObj);
  1070     *ydpi = nativeYdpi;
  1070     (*env)->DeleteLocalRef(env, jDisplayClass);
       
  1071 
       
  1072     if (ddpi) {
       
  1073         *ddpi = (float)nativeDdpi;
       
  1074     }
       
  1075     if (xdpi) {
       
  1076         *xdpi = nativeXdpi;
       
  1077     }
       
  1078     if (ydpi) {
       
  1079         *ydpi = nativeYdpi;
       
  1080     }
  1071 
  1081 
  1072     return 0;
  1082     return 0;
  1073 }
  1083 }
  1074 
  1084 
  1075 void * Android_JNI_GetAudioBuffer(void)
  1085 void * Android_JNI_GetAudioBuffer(void)