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()
|
|
|
|
{
|
2012-10-12 17:37:49 +08:00
|
|
|
// CCDirector::sharedDirector()->enableRetinaDisplay(true);
|
2011-07-08 11:22:35 +08:00
|
|
|
if (BugsTestBaseLayer::init())
|
|
|
|
{
|
2012-06-14 15:13:16 +08:00
|
|
|
CCSprite *bg = CCSprite::create("Images/bugs/RetinaDisplay.jpg");
|
2012-04-19 14:35:52 +08:00
|
|
|
addChild(bg, 0);
|
|
|
|
bg->setAnchorPoint(CCPointZero);
|
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
|
|
|
}
|