2011-07-08 11:22:35 +08:00
|
|
|
//
|
|
|
|
// Bug-350
|
|
|
|
// http://code.google.com/p/cocos2d-iphone/issues/detail?id=350
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "Bug-350.h"
|
|
|
|
|
|
|
|
bool Bug350Layer::init()
|
|
|
|
{
|
|
|
|
if (BugsTestBaseLayer::init())
|
|
|
|
{
|
2013-08-16 16:05:27 +08:00
|
|
|
auto size = Director::getInstance()->getWinSize();
|
|
|
|
auto background = Sprite::create("Hello.png");
|
2014-05-15 01:07:09 +08:00
|
|
|
background->setPosition(Vec2(size.width/2, size.height/2));
|
2012-04-19 14:35:52 +08:00
|
|
|
addChild(background);
|
2011-07-08 11:22:35 +08:00
|
|
|
return true;
|
2012-04-19 14:35:52 +08:00
|
|
|
}
|
2011-07-08 11:22:35 +08:00
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
return false;
|
2011-07-08 11:22:35 +08:00
|
|
|
}
|