mirror of https://github.com/axmolengine/axmol.git
fixing Linux build
This commit is contained in:
parent
626ba2686f
commit
1fcd6883f1
|
@ -560,15 +560,15 @@ bool Texture2D::initWithString(const char *text, const FontDefinition& textDefin
|
||||||
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
bool requestUnsupported = textDefinition->_shadow._shadowEnabled || textDefinition->_stroke._strokeEnabled;
|
bool requestUnsupported = textDefinition._shadow._shadowEnabled || textDefinition._stroke._strokeEnabled;
|
||||||
|
|
||||||
CCAssert(requestUnsupported == false, "Currently shadow and stroke only supported on iOS and Android!");
|
CCAssert(requestUnsupported == false, "Currently shadow and stroke only supported on iOS and Android!");
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
CCImage* pImage = new CCImage();
|
Image* pImage = new Image();
|
||||||
CC_BREAK_IF(NULL == pImage);
|
CC_BREAK_IF(NULL == pImage);
|
||||||
bRet = pImage->initWithString(text, (int)textDefinition->_dimensions.width, (int)textDefinition->_dimensions.height, eAlign, textDefinition->_fontName.c_str(), (int)textDefinition->_fontSize);
|
bRet = pImage->initWithString(text, (int)textDefinition._dimensions.width, (int)textDefinition._dimensions.height, eAlign, textDefinition._fontName.c_str(), (int)textDefinition._fontSize);
|
||||||
CC_BREAK_IF(!bRet);
|
CC_BREAK_IF(!bRet);
|
||||||
bRet = initWithImage(pImage);
|
bRet = initWithImage(pImage);
|
||||||
CC_SAFE_RELEASE(pImage);
|
CC_SAFE_RELEASE(pImage);
|
||||||
|
|
Loading…
Reference in New Issue