some fixes for config handling + save searchpaths

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@155 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
albertzeyer
2009-07-24 18:07:25 +00:00
parent 6c0db530e2
commit 6af47445c3
4 changed files with 22 additions and 19 deletions

View File

@@ -275,15 +275,14 @@ bool CVideoDriver::applyMode(void)
// And Display can be setup.
screen = SDL_SetVideoMode(m_Resolution.width,m_Resolution.height,m_Resolution.depth,Mode);
m_Resolution.depth = screen->format->BitsPerPixel;
if( !screen )
{
g_pLogFile->textOut(RED,"VidDrv_Start(): Couldn't create a SDL surface: %s<br>", SDL_GetError());
return false;
}
m_Resolution.depth = screen->format->BitsPerPixel;
if(!Fullscreen)
SDL_ShowCursor(SDL_ENABLE);
else