mirror of https://github.com/axmolengine/axmol.git
fixed #265 compile error when enable CC_XXX_DEBUG_DRAW switchs in ccConfig.h
This commit is contained in:
parent
5a4c721f0c
commit
641bea0abc
|
@ -23,6 +23,9 @@ THE SOFTWARE.
|
|||
****************************************************************************/
|
||||
#include "CCLabelAtlas.h"
|
||||
#include "CCTextureAtlas.h"
|
||||
#include "CGPointExtension.h"
|
||||
#include "CCDrawingPrimitives.h"
|
||||
|
||||
namespace cocos2d{
|
||||
|
||||
//CCLabelAtlas - Creation & Init
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue