jfloat --> jint.

This commit is contained in:
James Chen 2013-02-17 17:21:11 +08:00
parent f219f480cc
commit 505577239c
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ extern "C" {
int getDPIJNI() int getDPIJNI()
{ {
JniMethodInfo t; JniMethodInfo t;
jfloat ret = 0.0f; jint ret = -1;
if (JniHelper::getStaticMethodInfo(t, "org/cocos2dx/lib/Cocos2dxActivity", "getDPI", "()I")) { if (JniHelper::getStaticMethodInfo(t, "org/cocos2dx/lib/Cocos2dxActivity", "getDPI", "()I")) {
ret = t.env->CallStaticIntMethod(t.classID, t.methodID); ret = t.env->CallStaticIntMethod(t.classID, t.methodID);
t.env->DeleteLocalRef(t.classID); t.env->DeleteLocalRef(t.classID);