change params of glOrthof

This commit is contained in:
dumganhar 2011-10-10 14:33:18 +08:00
parent 64388023f6
commit 6a878daa89
1 changed files with 3 additions and 4 deletions

View File

@ -486,17 +486,16 @@ void ChipmunkTestLayer::onEnter()
glMatrixMode(GL_PROJECTION); glMatrixMode(GL_PROJECTION);
glLoadIdentity(); glLoadIdentity();
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WOPHONE) #if (CC_TARGET_PLATFORM == CC_PLATFORM_WOPHONE || CC_TARGET_PLATFORM == CC_PLATFORM_BADA)
// portraint // 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 // landscape
glOrthof(-320/factor, 320/factor, 0/factor, 960/factor, 1.0f, -1.0f); glOrthof(-320/factor, 320/factor, 0/factor, 960/factor, 1.0f, -1.0f);
#else #else
// portraint // 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 // 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 #endif
glMatrixMode(GL_MODELVIEW); glMatrixMode(GL_MODELVIEW);