CInfoClock: Use dynamic font for display

This commit is contained in:
M. Liebmann
2013-11-27 04:02:01 +01:00
parent 90985f11d2
commit 435d25c0ce
11 changed files with 70 additions and 6 deletions

View File

@@ -51,12 +51,16 @@ CInfoClock* CInfoClock::getInstance()
void CInfoClock::initVarInfoClock()
{
setClockFont(SNeutrinoSettings::FONT_TYPE_MENU_TITLE);
Init();
}
void CInfoClock::Init()
{
static int oldSize = 0;
if (oldSize != g_settings.infoClockFontSize) {
oldSize = g_settings.infoClockFontSize;
setClockFontSize(g_settings.infoClockFontSize);
}
int x_old = x, y_old = y, width_old = width, height_old = height;
CVolumeHelper::getInstance()->refresh(cl_font);
CVolumeHelper::getInstance()->getInfoClockDimensions(&x, &y, &width, &height);