small opengl cleanup / fixes

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@115 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
albertzeyer
2009-07-22 23:59:20 +00:00
parent d93059d3ec
commit 3ccc50f35a
2 changed files with 6 additions and 3 deletions

View File

@@ -649,7 +649,6 @@ short GraphicsDlg(stCloneKeenPlus *pCKP)
unsigned short zoom = 1;
unsigned short filter = 0;
unsigned short frameskip = 0;
bool opengl = false;
unsigned char gl_filter = 0;
bool fsmode;
char buf[256];
@@ -689,7 +688,7 @@ short GraphicsDlg(stCloneKeenPlus *pCKP)
fsmode = false;
}
opengl = g_pVideoDriver->isOpenGL();
bool opengl = g_pVideoDriver->isOpenGL();
if(!opengl)
{
zoom = g_pVideoDriver->getZoomValue();
@@ -844,7 +843,7 @@ short GraphicsDlg(stCloneKeenPlus *pCKP)
}
else if(selection == 5)
{
opengl = opengl ? false : true; // switch the mode!!
opengl = !opengl; // switch the mode!!
if(opengl)
DisplayMenu->setOptionText(5,"OpenGL Acceleration");

View File

@@ -9,6 +9,9 @@
*
*/
#ifndef __CG_COPENGL_H__
#define __CG_COPENGL_H__
#include <SDL.h>
#include <SDL_opengl.h>
#include "../scale2x/scalebit.h"
@@ -32,3 +35,4 @@ private:
unsigned int m_texparam;
};
#endif