[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

@ -135,6 +135,13 @@ void CCXEGLView::setViewPortInPoints(float x, float y, float w, float h)
(GLint)(w * factor),
(GLint)(h * factor));
}
else
{
glViewport((GLint)x,
(GLint)y,
(GLint)w,
(GLint)h);
}
}
CCXEGLView& CCXEGLView::sharedOpenGLView()