Merge pull request #2444 from dumganhar/iss2080-realOpacity

fixed #2080: _realOpacity isn't assigned in CCLayerColor::initWithColor.
This commit is contained in:
James Chen 2013-04-24 19:34:11 -07:00
commit 805285ab47
1 changed files with 1 additions and 1 deletions

View File

@ -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++ )
{