mirror of https://github.com/axmolengine/axmol.git
fixed #545 [Wophone] The effect of ChipmunkTest is wrong.
reset glOrthof param value in wophone
This commit is contained in:
parent
b72641608c
commit
b23409a942
|
@ -481,11 +481,19 @@ void ChipmunkTestLayer::onEnter()
|
||||||
|
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
glLoadIdentity();
|
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
|
// 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
|
||||||
|
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue