From 6a878daa8973dabd6b17d8bcf65e36dc61c7f9f9 Mon Sep 17 00:00:00 2001 From: dumganhar Date: Mon, 10 Oct 2011 14:33:18 +0800 Subject: [PATCH] change params of glOrthof --- tests/tests/ChipmunkTest/cocos2dChipmunkDemo.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/tests/ChipmunkTest/cocos2dChipmunkDemo.cpp b/tests/tests/ChipmunkTest/cocos2dChipmunkDemo.cpp index fa2fbb7c2b..fd1640421b 100644 --- a/tests/tests/ChipmunkTest/cocos2dChipmunkDemo.cpp +++ b/tests/tests/ChipmunkTest/cocos2dChipmunkDemo.cpp @@ -486,17 +486,16 @@ void ChipmunkTestLayer::onEnter() glMatrixMode(GL_PROJECTION); glLoadIdentity(); -#if (CC_TARGET_PLATFORM == CC_PLATFORM_WOPHONE) +#if (CC_TARGET_PLATFORM == CC_PLATFORM_WOPHONE || CC_TARGET_PLATFORM == CC_PLATFORM_BADA) // portraint //glOrthof(-320/factor, 320/factor, -480/factor, 480/factor, -1.0f, 1.0f); // landscape glOrthof(-320/factor, 320/factor, 0/factor, 960/factor, 1.0f, -1.0f); #else // portraint - // glOrthof(-320/factor, 320/factor, -480/factor, 480/factor, -1.0f, 1.0f); + //glOrthof(-320/factor, 320/factor, -480/factor, 480/factor, -1.0f, 1.0f); // landscape - glOrthof(-480/factor, 480/factor, -320/factor, 320/factor, 1.0f, -1.0f); - + glOrthof(-480/factor, 480/factor, -320/factor, 320/factor, 1.0f, -1.0f); #endif glMatrixMode(GL_MODELVIEW);