mirror of https://github.com/axmolengine/axmol.git
Fixed #4566: Fix LayerTest bug
This commit is contained in:
parent
2d5c295f99
commit
413e0010f5
|
@ -637,7 +637,7 @@ std::string LayerGradientTest::subtitle() const
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
LayerGradientTest2::LayerGradientTest2()
|
LayerGradientTest2::LayerGradientTest2()
|
||||||
{
|
{
|
||||||
auto layer = new LayerGradient;
|
auto layer = LayerGradient::create();
|
||||||
layer->initWithColor(Color4B(255,0,0,255), Color4B(255,255,0,255));
|
layer->initWithColor(Color4B(255,0,0,255), Color4B(255,255,0,255));
|
||||||
layer->autorelease();
|
layer->autorelease();
|
||||||
addChild(layer);
|
addChild(layer);
|
||||||
|
|
Loading…
Reference in New Issue