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()
|
|
|
|
{
|
2013-07-12 06:24:23 +08:00
|
|
|
// Director::getInstance()->enableRetinaDisplay(true);
|
2011-07-08 11:22:35 +08:00
|
|
|
if (BugsTestBaseLayer::init())
|
|
|
|
{
|
2013-08-16 16:05:27 +08:00
|
|
|
auto bg = Sprite::create("Images/bugs/RetinaDisplay.jpg");
|
2012-04-19 14:35:52 +08:00
|
|
|
addChild(bg, 0);
|
2014-04-15 18:23:40 +08:00
|
|
|
bg->setAnchorPoint(Vector2::ZERO);
|
2011-07-08 11:22:35 +08:00
|
|
|
|
|
|
|
return true;
|
2012-04-19 14:35:52 +08:00
|
|
|
}
|
|
|
|
return false;
|
2011-07-08 11:22:35 +08:00
|
|
|
}
|