Slight cleanup of glOrtho parameters that should be double floats.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7660 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-06-04 17:56:56 +00:00 committed by Git SVN Gateway
parent 788f399615
commit cbe998956a
3 changed files with 3 additions and 3 deletions

View File

@ -298,7 +298,7 @@ void pie_PerspectiveEnd(void)
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, pie_GetVideoBufferWidth(), pie_GetVideoBufferHeight(), 0, 1, -1);
glOrtho(0.0f, (double) pie_GetVideoBufferWidth(), (double) pie_GetVideoBufferHeight(), 0.0f, 1.0f, -1.0f);
glMatrixMode(GL_MODELVIEW);
}

View File

@ -197,7 +197,7 @@ BOOL screenInitialise(
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrtho(0, width, height, 0, 1, -1);
glOrtho(0.0f, (double)width, (double)height, 0.0f, 1.0f, -1.0f);
glMatrixMode(GL_TEXTURE);
glScalef(1.0f/OLD_TEXTURE_SIZE_FIX, 1.0f/OLD_TEXTURE_SIZE_FIX, 1.0f); // FIXME Scaling texture coords to 256x256!

View File

@ -357,7 +357,7 @@ void loadMapPreview(bool hideInterface)
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrtho(0.0,(double)BACKDROP_HACK_HEIGHT,0,(double)BACKDROP_HACK_WIDTH,-1,1);
glOrtho(0.0f,(double)BACKDROP_HACK_HEIGHT,0,(double)BACKDROP_HACK_WIDTH,-1.0f,1.0f);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();