mirror of
https://github.com/u0u0/Cocos2d-Lua-Community.git
synced 2026-06-06 03:31:43 +08:00
stroke macro fix
This commit is contained in:
@@ -524,8 +524,12 @@ bool Texture2D::initWithString(const char *text, const FontDefinition& textDefin
|
||||
return false;
|
||||
}
|
||||
|
||||
#if (CC_TARGET_PLATFORM != CC_PLATFORM_MAC) && (CC_TARGET_PLATFORM != CC_PLATFORM_ANDROID) && (CC_TARGET_PLATFORM != CC_PLATFORM_IOS)
|
||||
CCASSERT(textDefinition._stroke._strokeEnabled == false, "Currently stroke only supported on Mac, iOS and Android!");
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
|
||||
if (textDefinition._stroke._strokeEnabled)
|
||||
{
|
||||
CCLOGERROR("SystemFont Stroke Currently not support on Linux!");
|
||||
}
|
||||
textDefinition._stroke._strokeEnabled = false;
|
||||
#endif
|
||||
|
||||
PixelFormat pixelFormat = g_defaultAlphaPixelFormat;
|
||||
|
||||
Reference in New Issue
Block a user