Fix resize management for the mac version

This commit is contained in:
Xawotihs
2010-12-21 16:05:59 +00:00
parent 6fde01fe03
commit a5c5a9d60b

View File

@@ -272,7 +272,7 @@ void JGEQtRenderer::initializeGL()
void JGEQtRenderer::resizeGL(int width, int height)
{
if ((GLfloat)width / (GLfloat)height < ACTUAL_RATIO)
if ((GLfloat)width / (GLfloat)height <= ACTUAL_RATIO)
{
viewPort.setLeft(0);
viewPort.setTop(-((width/ACTUAL_RATIO)-height)/2);