Minor tweaks and fixes

This commit is contained in:
Birunthan Mohanathas
2013-03-27 18:14:27 +02:00
parent f16224793e
commit c6374f7c12
6 changed files with 30 additions and 34 deletions

View File

@ -432,15 +432,12 @@ bool CMeterString::DrawString(Gfx::Canvas& canvas, RectF* rect)
canvas.SetTextAntiAliasing(m_AntiAlias);
//CharacterRange range(0, stringLen);
//stringFormat.SetMeasurableCharacterRanges(1, &range);
m_TextFormat->SetTrimming(
m_ClipType == CLIP_ON ||
(m_ClipType == CLIP_AUTO && (m_NeedsClipping || (m_WDefined && m_HDefined))));
REAL x = (REAL)GetX();
REAL y = (REAL)GetY();
const REAL x = (REAL)GetX();
const REAL y = (REAL)GetY();
if (rect)
{
@ -598,15 +595,6 @@ void CMeterString::BindMeasures(CConfigParser& parser, const WCHAR* section)
}
}
/*
** Static function which frees the font cache.
** If collection is not NULL, frees the private font cache.
**
*/
void CMeterString::FreeFontCache(PrivateFontCollection* collection)
{
}
/*
** Static helper to log all installed font families.
**
@ -674,5 +662,4 @@ void CMeterString::InitializeStatic()
void CMeterString::FinalizeStatic()
{
FreeFontCache();
}