mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-02 05:39:07 +08:00
Fixes compilation warnings
This commit is contained in:
parent
de3de39f57
commit
931347e731
@ -20,7 +20,7 @@ bool AppDelegate::applicationDidFinishLaunching () {
|
||||
auto director = Director::getInstance();
|
||||
auto glview = director->getOpenGLView();
|
||||
if(!glview) {
|
||||
glview = GLView::create("My Game");
|
||||
glview = GLView::create("Spine Example");
|
||||
director->setOpenGLView(glview);
|
||||
}
|
||||
|
||||
|
||||
@ -44,13 +44,13 @@ static Resource largeResource = {cocos2d::Size(1024, 768), "ipad"};
|
||||
static Resource extralargeResource = {cocos2d::Size(2048, 1536), "ipad-retina"};
|
||||
|
||||
#if (TARGET_DESIGN_RESOLUTION_SIZE == DESIGN_RESOLUTION_480X320)
|
||||
static cocos2d::CCSize designResolutionSize = cocos2d::Size(480, 320);
|
||||
static cocos2d::Size designResolutionSize = cocos2d::Size(480, 320);
|
||||
#elif (TARGET_DESIGN_RESOLUTION_SIZE == DESIGN_RESOLUTION_960x640)
|
||||
static cocos2d::CCSize designResolutionSize = cocos2d::Size(960, 640);
|
||||
static cocos2d::Size designResolutionSize = cocos2d::Size(960, 640);
|
||||
#elif (TARGET_DESIGN_RESOLUTION_SIZE == DESIGN_RESOLUTION_1024X768)
|
||||
static cocos2d::CCSize designResolutionSize = cocos2d::Size(1024, 768);
|
||||
static cocos2d::Size designResolutionSize = cocos2d::Size(1024, 768);
|
||||
#elif (TARGET_DESIGN_RESOLUTION_SIZE == DESIGN_RESOLUTION_2048X1536)
|
||||
static cocos2d::CCSize designResolutionSize = cocos2d::Size(2048, 1536);
|
||||
static cocos2d::Size designResolutionSize = cocos2d::Size(2048, 1536);
|
||||
#else
|
||||
#error unknown target design resolution!
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user