mirror of https://github.com/axmolengine/axmol.git
[android] in main.cpp, change view->create(320,480) to (480,320) to fit the lastest modification, in both HelloWorld, HelloLua, Tests
This commit is contained in:
parent
3db735de73
commit
688131c958
|
@ -20,7 +20,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
|||
cocos2d::CCEGLView *view = &cocos2d::CCEGLView::sharedOpenGLView();
|
||||
view->setFrameWidthAndHeight(w, h);
|
||||
// if you want to run in WVGA with HVGA resource, set it
|
||||
// view->create(320, 480);
|
||||
view->create(480, 320);
|
||||
cocos2d::CCDirector::sharedDirector()->setOpenGLView(view);
|
||||
|
||||
CCFileUtils::setRelativePath(IMG_PATH);
|
||||
|
|
|
@ -20,7 +20,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
|||
cocos2d::CCEGLView *view = &cocos2d::CCEGLView::sharedOpenGLView();
|
||||
view->setFrameWidthAndHeight(w, h);
|
||||
// if you want to run in WVGA with HVGA resource, set it
|
||||
// view->create(320, 480);
|
||||
// view->create(480, 320);
|
||||
cocos2d::CCDirector::sharedDirector()->setOpenGLView(view);
|
||||
|
||||
CCFileUtils::setRelativePath(IMG_PATH);
|
||||
|
|
|
@ -20,7 +20,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
|||
cocos2d::CCEGLView *view = &cocos2d::CCEGLView::sharedOpenGLView();
|
||||
view->setFrameWidthAndHeight(w, h);
|
||||
// if you want to run in WVGA with HVGA resource, set it
|
||||
// view->create(320, 480);
|
||||
// view->create(480, 320);
|
||||
cocos2d::CCDirector::sharedDirector()->setOpenGLView(view);
|
||||
|
||||
CCFileUtils::setRelativePath(IMG_PATH);
|
||||
|
|
Loading…
Reference in New Issue