added check for WP8_SHADER_COMPILER

This commit is contained in:
Dale Stammen 2014-10-28 21:01:26 -07:00
parent a8e0987b8d
commit 060779c138
1 changed files with 2 additions and 0 deletions

View File

@ -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