fixed error labels
This commit is contained in:
parent
3de4a7a26f
commit
b807d6ce0d
@ -13,7 +13,7 @@
|
||||
File: ZE_ZEngine.cpp <br>
|
||||
Description: Implementation source file for ZEngine library main singleton class. <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
|
||||
\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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
@ -180,11 +180,11 @@ bool ZEngine::CreateDisplay(string title, string icon)
|
||||
Mix_CloseAudio();
|
||||
#endif
|
||||
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;
|
||||
}
|
||||
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;
|
||||
@ -200,7 +200,7 @@ bool ZEngine::CreateDisplay(string title, string icon)
|
||||
#ifdef USE_SDL_TTF
|
||||
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;
|
||||
}
|
||||
#endif //USE_SDL_TTF
|
||||
|
Loading…
Reference in New Issue
Block a user