geode/loader/include/Geode/cocos/cocos2dx/platform/android/CCDevice.cpp
2022-07-30 19:24:03 +03:00

16 lines
211 B
C++

#include "platform/CCDevice.h"
#include "jni/DPIJni.h"
NS_CC_BEGIN
int CCDevice::getDPI()
{
static int dpi = -1;
if (dpi == -1)
{
dpi = (int)getDPIJNI();
}
return dpi;
}
NS_CC_END