From 641bea0abc6712f5d4307dd6f4e3d284ea882202 Mon Sep 17 00:00:00 2001 From: Walzer Date: Fri, 17 Dec 2010 23:18:03 +0800 Subject: [PATCH] fixed #265 compile error when enable CC_XXX_DEBUG_DRAW switchs in ccConfig.h --- cocos2dx/label_nodes/CCLabelAtlas.cpp | 3 +++ cocos2dx/particle_nodes/CCParticleSystem.cpp | 2 +- cocos2dx/sprite_nodes/CCSpriteSheet.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cocos2dx/label_nodes/CCLabelAtlas.cpp b/cocos2dx/label_nodes/CCLabelAtlas.cpp index 73582cb7ab..1e20729fdd 100644 --- a/cocos2dx/label_nodes/CCLabelAtlas.cpp +++ b/cocos2dx/label_nodes/CCLabelAtlas.cpp @@ -23,6 +23,9 @@ THE SOFTWARE. ****************************************************************************/ #include "CCLabelAtlas.h" #include "CCTextureAtlas.h" +#include "CGPointExtension.h" +#include "CCDrawingPrimitives.h" + namespace cocos2d{ //CCLabelAtlas - Creation & Init diff --git a/cocos2dx/particle_nodes/CCParticleSystem.cpp b/cocos2dx/particle_nodes/CCParticleSystem.cpp index 1eb03e2b05..b7e3a1fdeb 100644 --- a/cocos2dx/particle_nodes/CCParticleSystem.cpp +++ b/cocos2dx/particle_nodes/CCParticleSystem.cpp @@ -60,7 +60,7 @@ namespace cocos2d { ,m_fEmitCounter(0) ,m_nParticleIdx(0) #if CC_ENABLE_PROFILERS - ,m_pProfilingTimer(NULL); + ,m_pProfilingTimer(NULL) #endif ,m_bIsActive(true) ,m_nParticleCount(0) diff --git a/cocos2dx/sprite_nodes/CCSpriteSheet.cpp b/cocos2dx/sprite_nodes/CCSpriteSheet.cpp index ecb6f48ce6..5e7f2541b4 100644 --- a/cocos2dx/sprite_nodes/CCSpriteSheet.cpp +++ b/cocos2dx/sprite_nodes/CCSpriteSheet.cpp @@ -272,7 +272,7 @@ void CCSpriteSheet::draw(void) } #if CC_SPRITESHEET_DEBUG_DRAW - CGRect rect = [child boundingBox]; //Issue #528 + CGRect rect = pSprite->boundingBox(); // Issue #528 CGPoint vertices[4]={ ccp(rect.origin.x,rect.origin.y), ccp(rect.origin.x+rect.size.width,rect.origin.y),