Add default line width to create function

This commit is contained in:
XiaoFeng 2015-11-26 09:32:57 +08:00
parent 9ec451ca31
commit 397fa809da
2 changed files with 3 additions and 3 deletions

View File

@ -156,9 +156,9 @@ DrawNode::~DrawNode()
} }
} }
DrawNode* DrawNode::create() DrawNode* DrawNode::create(int defaultLineWidth)
{ {
DrawNode* ret = new (std::nothrow) DrawNode(); DrawNode* ret = new (std::nothrow) DrawNode(defaultLineWidth);
if (ret && ret->init()) if (ret && ret->init())
{ {
ret->autorelease(); ret->autorelease();

View File

@ -58,7 +58,7 @@ public:
* *
* @return Return an autorelease object. * @return Return an autorelease object.
*/ */
static DrawNode* create(); static DrawNode* create(int defaultLineWidth = DEFAULT_LINE_WIDTH);
/** Draw a point. /** Draw a point.
* *