mirror of https://github.com/axmolengine/axmol.git
added check for WP8_SHADER_COMPILER
This commit is contained in:
parent
a8e0987b8d
commit
060779c138
|
@ -45,6 +45,8 @@ int Device::getDPI()
|
|||
#if CC_TARGET_PLATFORM == CC_PLATFORM_WP8
|
||||
static const float dipsPerInch = 96.0f;
|
||||
return floor(DisplayProperties::LogicalDpi / dipsPerInch + 0.5f); // Round to nearest integer.
|
||||
#elif defined WP8_SHADER_COMPILER
|
||||
return 0;
|
||||
#else
|
||||
return cocos2d::GLViewImpl::sharedOpenGLView()->GetDPI();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue