From 2bc8427b3c302cb0895e68c306fe7b4c83e2e6ba Mon Sep 17 00:00:00 2001 From: natural-law Date: Thu, 7 Jul 2011 11:02:47 +0800 Subject: [PATCH] Resolve the bug of some particle test cases can't be shown. --- cocos2dx/particle_nodes/CCParticleSystemQuad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2dx/particle_nodes/CCParticleSystemQuad.cpp b/cocos2dx/particle_nodes/CCParticleSystemQuad.cpp index 2ec98e9c5f..f965e4d9b6 100644 --- a/cocos2dx/particle_nodes/CCParticleSystemQuad.cpp +++ b/cocos2dx/particle_nodes/CCParticleSystemQuad.cpp @@ -198,7 +198,7 @@ void CCParticleSystemQuad::updateQuadWithParticle(tCCParticle* particle, CCPoint ccV2F_C4B_T2F_Quad *quad = &(m_pQuads[m_nParticleIdx]); ccColor4B color = {particle->color.r * 255, particle->color.g * 255, particle->color.b * 255, - particle->color.b * 255}; + particle->color.a * 255}; quad->bl.colors = color; quad->br.colors = color; quad->tl.colors = color;