axmol/samples/Cpp/TestCpp/Classes/BugsTest/Bug-350.cpp

21 lines
438 B
C++
Raw Normal View History

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())
{
Size size = Director::sharedDirector()->getWinSize();
Sprite *background = Sprite::create("Hello.png");
background->setPosition(ccp(size.width/2, size.height/2));
addChild(background);
2011-07-08 11:22:35 +08:00
return true;
}
2011-07-08 11:22:35 +08:00
return false;
2011-07-08 11:22:35 +08:00
}