CInfoClock: Use dynamic font for display

Origin commit data
------------------
Commit: 435d25c0ce
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-11-27 (Wed, 27 Nov 2013)
This commit is contained in:
Michael Liebmann
2013-11-27 04:02:01 +01:00
parent cd77f46e24
commit c9b42ca396
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);