mirror of https://github.com/axmolengine/axmol.git
fix a bug of CCProgressTimer when upgrade to rc3
This commit is contained in:
parent
6129e33794
commit
f894e00f27
|
@ -96,7 +96,7 @@ void CCProgressTimer::setPercentage(float fPercentage)
|
|||
{
|
||||
if (m_fPercentage != fPercentage)
|
||||
{
|
||||
m_fPercentage = clampf(m_fPercentage, 0, 100);
|
||||
m_fPercentage = clampf(fPercentage, 0, 100);
|
||||
updateProgress();
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ ccVertex2F CCProgressTimer::vertexFromTexCoord(cocos2d::CCPoint texCoord)
|
|||
|
||||
void CCProgressTimer::updateColor(void)
|
||||
{
|
||||
GLbyte op = m_pSprite->getOpacity();
|
||||
GLubyte op = m_pSprite->getOpacity();
|
||||
ccColor3B c3b = m_pSprite->getColor();
|
||||
|
||||
ccColor4B color = {c3b.r, c3b.g, c3b.b, op};
|
||||
|
|
|
@ -44,6 +44,9 @@ CCTextureAtlas::CCTextureAtlas()
|
|||
:m_pIndices(NULL)
|
||||
,m_pTexture(NULL)
|
||||
,m_pQuads(NULL)
|
||||
#if CC_USES_VBO
|
||||
, m_bDirty(false)
|
||||
#endif
|
||||
{}
|
||||
|
||||
CCTextureAtlas::~CCTextureAtlas()
|
||||
|
|
Loading…
Reference in New Issue