Merge pull request #334 from liswei/issue545

fixed #545 [Wophone] The effect of ChipmunkTest is wrong.
This commit is contained in:
minggo 2011-06-29 00:50:53 -07:00
commit 0f002b112d
1 changed files with 11 additions and 3 deletions

View File

@ -481,11 +481,19 @@ void ChipmunkTestLayer::onEnter()
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WOPHONE)
// 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);
// landscape
glOrthof(-480/factor, 480/factor, -320/factor, 320/factor, 1.0f, -1.0f);
#endif
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();