This commit is contained in:
Glenn Maynard
2003-01-04 08:12:19 +00:00
parent 5e8ced1a94
commit 88d73d54e3
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -63,6 +63,7 @@ public:
map<int,glyph*> m_iCharToGlyph;
Font();
~Font();
RageTexture *GetGlyphTexture( int c );
const glyph &GetGlyph( int c ) const;
+2 -2
View File
@@ -33,7 +33,7 @@ FontManager::~FontManager()
{
Font* pFont = i->second;
LOG->Trace( "FONT LEAK: '%s', RefCount = %d.", i->first.GetString(), pFont->m_iRefCount );
SAFE_DELETE( pFont );
delete pFont;
}
}
@@ -52,8 +52,8 @@ Font* FontManager::LoadFont( CString sFontOrTextureFilePath, CString sChars )
map<CString, Font*>::iterator p = m_mapPathToFont.find(sFontOrTextureFilePath);
if(p != m_mapPathToFont.end()) {
// LOG->Trace( ssprintf("FontManager: The Font '%s' now has %d references.", sFontFilePath.GetString(), pFont->m_iRefCount) );
Font *pFont=p->second;
// LOG->Trace( ssprintf("FontManager: The Font '%s' now has %d references.", sFontOrTextureFilePath.GetString(), pFont->m_iRefCount) );
pFont->m_iRefCount++;
return pFont;
}