diff options
Diffstat (limited to 'engines/wintermute/BFont.cpp')
-rw-r--r-- | engines/wintermute/BFont.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/BFont.cpp b/engines/wintermute/BFont.cpp index 92ce8595ae..4bae2841ab 100644 --- a/engines/wintermute/BFont.cpp +++ b/engines/wintermute/BFont.cpp @@ -71,7 +71,7 @@ int CBFont::GetTextWidth(byte *text, int MaxLenght) { /*
//////////////////////////////////////////////////////////////////////
-HRESULT CBFont::LoadFile(char * Filename)
+HRESULT CBFont::LoadFile(const char * Filename)
{
BYTE* Buffer = Game->_fileManager->ReadWholeFile(Filename);
if(Buffer==NULL){
@@ -152,7 +152,7 @@ HRESULT CBFont::Persist(CBPersistMgr *PersistMgr) { //////////////////////////////////////////////////////////////////////////
-CBFont *CBFont::CreateFromFile(CBGame *Game, char *Filename) {
+CBFont *CBFont::CreateFromFile(CBGame *Game, const char *Filename) {
if (IsTrueType(Game, Filename)) {
CBFontTT *Font = new CBFontTT(Game);
if (Font) {
@@ -180,7 +180,7 @@ TOKEN_DEF(FONT) TOKEN_DEF(TTFONT)
TOKEN_DEF_END
//////////////////////////////////////////////////////////////////////////
-bool CBFont::IsTrueType(CBGame *Game, char *Filename) {
+bool CBFont::IsTrueType(CBGame *Game, const char *Filename) {
TOKEN_TABLE_START(commands)
TOKEN_TABLE(FONT)
TOKEN_TABLE(TTFONT)
|