diff --git a/cocos/platform/winrt/CCDevice.cpp b/cocos/platform/winrt/CCDevice.cpp index 1bde53583a..e3f7edbde5 100644 --- a/cocos/platform/winrt/CCDevice.cpp +++ b/cocos/platform/winrt/CCDevice.cpp @@ -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