mirror of https://github.com/axmolengine/axmol.git
change type of Label::_shadowNode
This commit is contained in:
parent
08beaa3532
commit
cffdb129c9
|
@ -1084,7 +1084,7 @@ void Label::drawTextSprite(Renderer *renderer, bool parentTransformUpdated)
|
|||
if (_shadowEnabled && _shadowNode == nullptr)
|
||||
{
|
||||
_shadowNode = Sprite::createWithTexture(_textSprite->getTexture());
|
||||
((Sprite*)_shadowNode)->setBlendFunc(_blendFunc);
|
||||
_shadowNode->setBlendFunc(_blendFunc);
|
||||
_shadowNode->setAnchorPoint(Point::ANCHOR_BOTTOM_LEFT);
|
||||
_shadowNode->setColor(_shadowColor);
|
||||
_shadowNode->setOpacity(_effectColorF.a * _displayedOpacity);
|
||||
|
|
|
@ -372,7 +372,7 @@ protected:
|
|||
int _shadowBlurRadius;
|
||||
kmMat4 _parentTransform;
|
||||
Color3B _shadowColor;
|
||||
Node* _shadowNode;
|
||||
Sprite* _shadowNode;
|
||||
|
||||
Color4B _textColor;
|
||||
Color4F _textColorF;
|
||||
|
|
Loading…
Reference in New Issue