fixed #265 compile error when enable CC_XXX_DEBUG_DRAW switchs in ccConfig.h

This commit is contained in:
Walzer 2010-12-17 23:18:03 +08:00
parent 5a4c721f0c
commit 641bea0abc
3 changed files with 5 additions and 2 deletions

View File

@ -23,6 +23,9 @@ THE SOFTWARE.
****************************************************************************/ ****************************************************************************/
#include "CCLabelAtlas.h" #include "CCLabelAtlas.h"
#include "CCTextureAtlas.h" #include "CCTextureAtlas.h"
#include "CGPointExtension.h"
#include "CCDrawingPrimitives.h"
namespace cocos2d{ namespace cocos2d{
//CCLabelAtlas - Creation & Init //CCLabelAtlas - Creation & Init

View File

@ -60,7 +60,7 @@ namespace cocos2d {
,m_fEmitCounter(0) ,m_fEmitCounter(0)
,m_nParticleIdx(0) ,m_nParticleIdx(0)
#if CC_ENABLE_PROFILERS #if CC_ENABLE_PROFILERS
,m_pProfilingTimer(NULL); ,m_pProfilingTimer(NULL)
#endif #endif
,m_bIsActive(true) ,m_bIsActive(true)
,m_nParticleCount(0) ,m_nParticleCount(0)

View File

@ -272,7 +272,7 @@ void CCSpriteSheet::draw(void)
} }
#if CC_SPRITESHEET_DEBUG_DRAW #if CC_SPRITESHEET_DEBUG_DRAW
CGRect rect = [child boundingBox]; //Issue #528 CGRect rect = pSprite->boundingBox(); // Issue #528
CGPoint vertices[4]={ CGPoint vertices[4]={
ccp(rect.origin.x,rect.origin.y), ccp(rect.origin.x,rect.origin.y),
ccp(rect.origin.x+rect.size.width,rect.origin.y), ccp(rect.origin.x+rect.size.width,rect.origin.y),