зеркало из https://github.com/microsoft/cocos2d-x.git
fix compiling error caused by enable CC_LABELBMFONT_DEBUG_DRAW/CC_LABELATLAS_DEBUG_DRAW
This commit is contained in:
Родитель
8dce62b94c
Коммит
d63474436b
|
@ -256,7 +256,7 @@ void LabelAtlas::updateColor()
|
|||
#if CC_LABELATLAS_DEBUG_DRAW
|
||||
void LabelAtlas::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)
|
||||
{
|
||||
AtlasNode::draw(renderer, transform, transformUpdated);
|
||||
AtlasNode::draw(renderer, transform, _transformUpdated);
|
||||
|
||||
_debugDrawNode->clear();
|
||||
auto size = getContentSize();
|
||||
|
|
|
@ -30,6 +30,7 @@ THE SOFTWARE.
|
|||
#include "CCAtlasNode.h"
|
||||
#if CC_LABELATLAS_DEBUG_DRAW
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
#include "2d/CCDrawNode.h"
|
||||
#endif
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -213,7 +213,7 @@ Rect LabelBMFont::getBoundingBox() const
|
|||
#if CC_LABELBMFONT_DEBUG_DRAW
|
||||
void LabelBMFont::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)
|
||||
{
|
||||
Node::draw(renderer, transform, transformUpdated);
|
||||
Node::draw(renderer, transform, _transformUpdated);
|
||||
|
||||
_debugDrawNode->clear();
|
||||
auto size = getContentSize();
|
||||
|
|
|
@ -37,6 +37,7 @@ Use any of these editors to generate BMFonts:
|
|||
#include "2d/CCLabel.h"
|
||||
#if CC_LABELBMFONT_DEBUG_DRAW
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
#include "2d/CCDrawNode.h"
|
||||
#endif
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
Загрузка…
Ссылка в новой задаче