This commit is contained in:
Birunthan Mohanathas
2012-05-19 18:16:04 +03:00
parent f15b6723b5
commit 9453780c26
6 changed files with 25 additions and 40 deletions

View File

@ -765,7 +765,7 @@ void CMeterString::FreeFontCache(PrivateFontCollection* collection)
size_t len = _snwprintf_s(buffer, _TRUNCATE, L"<%p>", collection);
prefix.assign(buffer, len);
StringToLower(prefix);
_wcsupr(&prefix[0]);
}
std::unordered_map<std::wstring, Gdiplus::Font*>::iterator iter2 = c_Fonts.begin();
@ -818,7 +818,7 @@ std::wstring CMeterString::FontFaceToString(const std::wstring& fontFace, Privat
strTmp.reserve(len + fontFace.size());
strTmp.assign(buffer, len);
strTmp += fontFace;
StringToLower(strTmp);
_wcsupr(&strTmp[0]);
return strTmp;
}