From 060779c138fc6dc0f68a19192e6ff66388b226da Mon Sep 17 00:00:00 2001 From: Dale Stammen Date: Tue, 28 Oct 2014 21:01:26 -0700 Subject: [PATCH] added check for WP8_SHADER_COMPILER --- cocos/platform/winrt/CCDevice.cpp | 2 ++ 1 file changed, 2 insertions(+) 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