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

23 lines
448 B
C++
Raw Normal View History

2011-07-08 11:22:35 +08:00
//
// Bug-899
// http://code.google.com/p/cocos2d-iphone/issues/detail?id=899
//
// Test coded by: JohnnyFlash
//
#include "Bug-899.h"
bool Bug899Layer::init()
{
// Director::sharedDirector()->enableRetinaDisplay(true);
2011-07-08 11:22:35 +08:00
if (BugsTestBaseLayer::init())
{
Sprite *bg = Sprite::create("Images/bugs/RetinaDisplay.jpg");
addChild(bg, 0);
bg->setAnchorPoint(PointZero);
2011-07-08 11:22:35 +08:00
return true;
}
return false;
2011-07-08 11:22:35 +08:00
}