add video player debug draw config

This commit is contained in:
andyque 2014-09-15 17:59:51 +08:00
parent 71b6be678e
commit 126ec18a89
2 changed files with 3 additions and 2 deletions

View File

@ -67,5 +67,6 @@
#define CREATE_CLASS_WIDGET_READER_INFO(className) \
cocos2d::ObjectFactory::TInfo(#className, &className::createInstance) \
#define CC_VIDEOPLAYER_DEBUG_DRAW 0
#endif /* defined(__TestCpp__GUIDefine__) */

View File

@ -278,7 +278,7 @@ VideoPlayer::VideoPlayer()
#if CC_VIDEOPLAYER_DEBUG_DRAW
_debugDrawNode = DrawNode::create();
addchild(_debugDrawNode);
addChild(_debugDrawNode);
#endif
}
@ -338,7 +338,7 @@ void VideoPlayer::draw(Renderer* renderer, const Mat4 &transform, uint32_t flags
Point(size.width, size.height),
Point(0, size.height)
};
_debugdrawNode->drawPoly(vertices, 4, true, Color4F(1.0, 1.0, 1.0, 1.0));
_debugDrawNode->drawPoly(vertices, 4, true, Color4F(1.0, 1.0, 1.0, 1.0));
#endif
}