fixed aspect correction. This setting can now be saved
git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@219 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
@@ -33,7 +33,6 @@ bool COpenGL::initGL(unsigned Width, unsigned Height, unsigned char Depth,
|
||||
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
|
||||
glClearColor(0,0,0,0);
|
||||
|
||||
+6
-10
@@ -92,8 +92,7 @@ short CSettings::loadDrvCfg()
|
||||
g_pVideoDriver->setMode(width,height,depth);
|
||||
g_pVideoDriver->setFrameskip(Parser.getIntValue("frameskip","Video"));
|
||||
|
||||
if((Parser.getIntValue("fullscreen","Video")) == 1)
|
||||
g_pVideoDriver->isFullscreen(true);
|
||||
g_pVideoDriver->isFullscreen(((Parser.getIntValue("fullscreen","Video")) == 1));
|
||||
|
||||
g_pVideoDriver->setOGLFilter(Parser.getIntValue("OGLfilter","Video"));
|
||||
g_pVideoDriver->setZoom(Parser.getIntValue("scale","Video"));
|
||||
@@ -101,15 +100,12 @@ short CSettings::loadDrvCfg()
|
||||
|
||||
g_pVideoDriver->setFilter(Parser.getIntValue("filter","Video"));
|
||||
|
||||
if(Parser.getIntValue("OpenGL","Video") == 1)
|
||||
g_pVideoDriver->enableOpenGL(true);
|
||||
else
|
||||
g_pVideoDriver->enableOpenGL(false);
|
||||
g_pVideoDriver->enableOpenGL(Parser.getIntValue("OpenGL","Video") == 1);
|
||||
|
||||
if(Parser.getIntValue("channels","Audio") == 2)
|
||||
g_pSound->setSoundmode(Parser.getIntValue("rate","Audio"), true);
|
||||
else
|
||||
g_pSound->setSoundmode(Parser.getIntValue("rate","Audio"), false);
|
||||
g_pVideoDriver->setAspectCorrection(Parser.getIntValue("aspect","Video") == 1);
|
||||
|
||||
g_pSound->setSoundmode(Parser.getIntValue("rate","Audio"),
|
||||
Parser.getIntValue("channels","Audio") == 2);
|
||||
}
|
||||
|
||||
return retval;
|
||||
|
||||
@@ -86,14 +86,14 @@ void CCredits::Render(stCloneKeenPlus *pCKP)
|
||||
strcpy(scrolltext[19],"");
|
||||
strcpy(scrolltext[20],"Aka CloneKeenPlus");
|
||||
strcpy(scrolltext[21],"");
|
||||
strcpy(scrolltext[22],"Main Developer:");
|
||||
strcpy(scrolltext[22],"Main Developers:");
|
||||
strcpy(scrolltext[23]," Gerstrong");
|
||||
strcpy(scrolltext[24],"Handheld Devices (Wiz):");
|
||||
strcpy(scrolltext[25]," Pickle");
|
||||
strcpy(scrolltext[26],"Resources:");
|
||||
strcpy(scrolltext[27]," Tulip");
|
||||
strcpy(scrolltext[28]," DaVince");
|
||||
strcpy(scrolltext[29],"");
|
||||
strcpy(scrolltext[24]," Albert Zeyer");
|
||||
strcpy(scrolltext[25],"Handheld Devices (Wiz):");
|
||||
strcpy(scrolltext[26]," Pickle");
|
||||
strcpy(scrolltext[27],"Resources:");
|
||||
strcpy(scrolltext[28]," Tulip");
|
||||
strcpy(scrolltext[29]," DaVince");
|
||||
strcpy(scrolltext[30],"");
|
||||
strcpy(scrolltext[31],"");
|
||||
strcpy(scrolltext[32],"\"As a child, I spent way too");
|
||||
|
||||
Reference in New Issue
Block a user