mirror of https://github.com/axmolengine/axmol.git
Merge pull request #2444 from dumganhar/iss2080-realOpacity
fixed #2080: _realOpacity isn't assigned in CCLayerColor::initWithColor.
This commit is contained in:
commit
805285ab47
|
@ -709,7 +709,7 @@ bool CCLayerColor::initWithColor(const ccColor4B& color, GLfloat w, GLfloat h)
|
|||
_displayedColor.r = _realColor.r = color.r;
|
||||
_displayedColor.g = _realColor.g = color.g;
|
||||
_displayedColor.b = _realColor.b = color.b;
|
||||
_displayedOpacity = color.a;
|
||||
_displayedOpacity = _realOpacity = color.a;
|
||||
|
||||
for (size_t i = 0; i<sizeof(m_pSquareVertices) / sizeof( m_pSquareVertices[0]); i++ )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue