Adding ImageCrop and MeasureName/ImageName changes by spx.

This commit is contained in:
Birunthan Mohanathas
2010-12-05 15:34:37 +00:00
parent 862a6d86ae
commit 6efbd23314
8 changed files with 231 additions and 80 deletions

View File

@ -257,23 +257,7 @@ void CMeterString::ReadConfig(const WCHAR* section)
// Check for extra measures
if (!m_Initialized && !m_MeasureName.empty())
{
WCHAR tmpName[64];
int i = 2;
bool loop = true;
do
{
swprintf(tmpName, L"MeasureName%i", i);
std::wstring measure = parser.ReadString(section, tmpName, L"");
if (!measure.empty())
{
m_MeasureNames.push_back(measure);
}
else
{
loop = false;
}
++i;
} while(loop);
ReadMeasureNames(parser, section, m_MeasureNames);
}
m_Color = parser.ReadColor(section, L"FontColor", Color::Black);