diff --git a/stepmania/src/FontManager.cpp b/stepmania/src/FontManager.cpp index f38f9fefcd..9c61ed921f 100644 --- a/stepmania/src/FontManager.cpp +++ b/stepmania/src/FontManager.cpp @@ -61,6 +61,11 @@ Font* FontManager::LoadFont( const CString &sFontOrTextureFilePath, CString sCha return f; } +Font *FontManager::CopyFont( Font *pFont ) +{ + ++pFont->m_iRefCount; + return pFont; +} void FontManager::UnloadFont( Font *fp ) { diff --git a/stepmania/src/FontManager.h b/stepmania/src/FontManager.h index f4e7ce863c..5fe9afad6f 100644 --- a/stepmania/src/FontManager.h +++ b/stepmania/src/FontManager.h @@ -13,6 +13,7 @@ public: ~FontManager(); Font* LoadFont( const CString &sFontOrTextureFilePath, CString sChars = "" ); + Font *CopyFont( Font *pFont ); void UnloadFont( Font *fp ); /* Warning: This reloads fonts completely, so all BitmapTexts need to be