mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-11 16:41:12 -05:00
17 lines
211 B
C++
17 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
|