diff --git a/HelloLua/android/jni/helloworld/main.cpp b/HelloLua/android/jni/helloworld/main.cpp index d268ee37f2..cbdbfe7a69 100644 --- a/HelloLua/android/jni/helloworld/main.cpp +++ b/HelloLua/android/jni/helloworld/main.cpp @@ -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); diff --git a/HelloWorld/android/jni/helloworld/main.cpp b/HelloWorld/android/jni/helloworld/main.cpp index d268ee37f2..623378b14f 100644 --- a/HelloWorld/android/jni/helloworld/main.cpp +++ b/HelloWorld/android/jni/helloworld/main.cpp @@ -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); diff --git a/tests/test.android/jni/tests/main.cpp b/tests/test.android/jni/tests/main.cpp index d268ee37f2..623378b14f 100644 --- a/tests/test.android/jni/tests/main.cpp +++ b/tests/test.android/jni/tests/main.cpp @@ -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);