mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user