mirror of https://github.com/axmolengine/axmol.git
23 lines
443 B
C++
23 lines
443 B
C++
//
|
|
// 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::getInstance()->enableRetinaDisplay(true);
|
|
if (BugsTestBaseLayer::init())
|
|
{
|
|
auto bg = Sprite::create("Images/bugs/RetinaDisplay.jpg");
|
|
addChild(bg, 0);
|
|
bg->setAnchorPoint(Vec2::ZERO);
|
|
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|