[android] fix a bug when run in HVGA

This commit is contained in:
minggo 2011-03-01 18:34:06 +08:00
parent b65d84551b
commit fc75306402
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}
}