geode/loader/include/Geode/cocos/platform/android/CCDevice.cpp

17 lines
214 B
C++
Raw Normal View History

#include "../platform/CCDevice.h"
2022-07-30 12:24:03 -04:00
#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