mirror of https://github.com/axmolengine/axmol.git
Add default line width to create function
This commit is contained in:
parent
9ec451ca31
commit
397fa809da
|
@ -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())
|
||||
{
|
||||
ret->autorelease();
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
*
|
||||
* @return Return an autorelease object.
|
||||
*/
|
||||
static DrawNode* create();
|
||||
static DrawNode* create(int defaultLineWidth = DEFAULT_LINE_WIDTH);
|
||||
|
||||
/** Draw a point.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue