mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
CInfoClock: Use dynamic font for display
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