replacing markers in BMT::SetText is too expensive; do it

manually
This commit is contained in:
Glenn Maynard
2003-01-18 09:18:30 +00:00
parent cbeb0d1288
commit 49ffa7b45f
4 changed files with 18 additions and 6 deletions
+6
View File
@@ -20,6 +20,7 @@
#include "IniFile.h"
#include "RageTimer.h"
#include "Font.h"
#include "FontCharAliases.h"
using namespace std;
@@ -369,6 +370,11 @@ try_metric_again:
if( m_pIniMetrics->GetValue(sClassName,sValueName,sValue) )
{
sValue.Replace("::","\n"); // "::" means newline since you can't use line breaks in an ini file.
/* XXX: add a parameter to turn this off if there are some metrics where
* we don't want markers */
FontCharAliases::ReplaceMarkers(sValue);
return sValue;
}