mirror of https://github.com/axmolengine/axmol.git
[android] fix a bug when run in HVGA
This commit is contained in:
parent
b65d84551b
commit
fc75306402
|
@ -134,6 +134,13 @@ void CCXEGLView::setViewPortInPoints(float x, float y, float w, float h)
|
|||
(GLint)(y * factor) + m_rcViewPort.origin.y,
|
||||
(GLint)(w * factor),
|
||||
(GLint)(h * factor));
|
||||
}
|
||||
else
|
||||
{
|
||||
glViewport((GLint)x,
|
||||
(GLint)y,
|
||||
(GLint)w,
|
||||
(GLint)h);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue