背景和头像缺失
This commit is contained in:
19
cocos2d/cocos/platform/android/jni/DPIJni.cpp
Normal file
19
cocos2d/cocos/platform/android/jni/DPIJni.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "DPIJni.h"
|
||||
#include "jni/JniHelper.h"
|
||||
|
||||
USING_NS_CC;
|
||||
|
||||
extern "C" {
|
||||
|
||||
int getDPIJNI()
|
||||
{
|
||||
JniMethodInfo t;
|
||||
jint ret = -1;
|
||||
if (JniHelper::getStaticMethodInfo(t, "org/cocos2dx/lib/Cocos2dxHelper", "getDPI", "()I")) {
|
||||
ret = t.env->CallStaticIntMethod(t.classID, t.methodID);
|
||||
t.env->DeleteLocalRef(t.classID);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
Reference in New Issue
Block a user