fixed error labels
This commit is contained in:
parent
3de4a7a26f
commit
b807d6ce0d
@ -13,7 +13,7 @@
|
|||||||
File: ZE_ZEngine.cpp <br>
|
File: ZE_ZEngine.cpp <br>
|
||||||
Description: Implementation source file for ZEngine library main singleton class. <br>
|
Description: Implementation source file for ZEngine library main singleton class. <br>
|
||||||
Author(s): James Turk <br>
|
Author(s): James Turk <br>
|
||||||
$Id: ZE_ZEngine.cpp,v 1.13 2003/01/12 17:28:11 cozman Exp $<br>
|
$Id: ZE_ZEngine.cpp,v 1.14 2003/01/12 20:55:46 cozman Exp $<br>
|
||||||
|
|
||||||
\file ZE_ZEngine.cpp
|
\file ZE_ZEngine.cpp
|
||||||
\brief Central source file for ZEngine.
|
\brief Central source file for ZEngine.
|
||||||
@ -106,7 +106,7 @@ bool ZEngine::CreateDisplay(string title, string icon)
|
|||||||
|
|
||||||
if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_AUDIO) < 0)
|
if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_AUDIO) < 0)
|
||||||
{
|
{
|
||||||
LogError(FormatStr("SDL could not be initialized: %s", mWidth, mHeight, mBPP, SDL_GetError()));
|
LogError(FormatStr("SDL could not be initialized: %s", SDL_GetError()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,11 +180,11 @@ bool ZEngine::CreateDisplay(string title, string icon)
|
|||||||
Mix_CloseAudio();
|
Mix_CloseAudio();
|
||||||
#endif
|
#endif
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
LogError(FormatStr("Unable to set video mode %dx%d (%dBpp): %s. Desktop Depth (%d) failed, fatal error.",mWidth,mHeight,mBPP,SDL_GetError()));
|
LogError(FormatStr("Unable to set video mode %dx%d (%dBpp): %s. Desktop Depth failed, fatal error.",mWidth,mHeight,mBPP,SDL_GetError()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else //let them know what they wanted failed
|
else //let them know what they wanted failed
|
||||||
LogError(FormatStr("Unable to set video mode %dx%d (%dBpp): %s. Desktop Depth (%d) worked.",mWidth,mHeight,mBPP,SDL_GetError()));
|
LogError(FormatStr("Unable to set video mode %dx%d (%dBpp): %s. Desktop Depth worked.",mWidth,mHeight,mBPP,SDL_GetError()));
|
||||||
}
|
}
|
||||||
|
|
||||||
mWidth = mScreen->w;
|
mWidth = mScreen->w;
|
||||||
@ -200,7 +200,7 @@ bool ZEngine::CreateDisplay(string title, string icon)
|
|||||||
#ifdef USE_SDL_TTF
|
#ifdef USE_SDL_TTF
|
||||||
if(TTF_Init() < 0)
|
if(TTF_Init() < 0)
|
||||||
{
|
{
|
||||||
LogError(FormatStr("SDL could not be initialized: %s", mWidth, mHeight, mBPP, SDL_GetError()));
|
LogError(FormatStr("SDL_ttf could not be initialized: %s", TTF_GetError()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif //USE_SDL_TTF
|
#endif //USE_SDL_TTF
|
||||||
|
Loading…
Reference in New Issue
Block a user