update 20.06.2009

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@27 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
gerstrong
2009-06-20 18:08:58 +00:00
parent 0e9ddc542c
commit 053a44eeae
58 changed files with 838 additions and 1298 deletions
+5 -2
View File
@@ -20,7 +20,7 @@ COpenGL::~COpenGL() {
}
bool COpenGL::initGL(unsigned Width, unsigned Height, unsigned char Depth,
GLint oglfilter, unsigned char scalex)
GLint oglfilter, unsigned char scalex, bool aspect)
{
m_Depth = Depth;
m_ScaleX = scalex;
@@ -28,7 +28,10 @@ bool COpenGL::initGL(unsigned Width, unsigned Height, unsigned char Depth,
m_texparam = GL_TEXTURE_2D;
// Set the proper resolution for OpenGL. Very important, when user changes the resolution
glViewport(0,0,Width, Height);
if(aspect)
glViewport(0,(Height-(Height*200)/240)/2,Width, (Height*200)/240);
else
glViewport(0,0,Width, Height);
//glViewport(0,0,1024, 1024);
// Set clear colour