CInfoClock: Rework calculate size & position

- Fix display info clock
- Preparation for alternative use of neutrino fonts / DynFonts


Origin commit data
------------------
Commit: 0c18d4a6db
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-11-26 (Tue, 26 Nov 2013)
This commit is contained in:
Michael Liebmann
2013-11-26 14:08:48 +01:00
parent a33bb55eaa
commit 658f794ef5
6 changed files with 30 additions and 24 deletions

View File

@@ -62,6 +62,9 @@ void CAudioMute::AudioMute(int newValue, bool isEvent)
if( isEvent && ( neutrino->getMode() != CNeutrinoApp::mode_scart ) && ( neutrino->getMode() != CNeutrinoApp::mode_pic))
{
if (doInit)
CVolumeHelper::getInstance()->refresh();
CVolumeHelper::getInstance()->getMuteIconDimensions(&x, &y, &width, &height);
if ((y_old != y)) {
if (do_paint_mute_icon)
@@ -88,15 +91,13 @@ void CAudioMute::AudioMute(int newValue, bool isEvent)
frameBuffer->setFbArea(CFrameBuffer::FB_PAINTAREA_MUTEICON1);
}
frameBuffer->fbNoCheck(false);
if (doInit)
CVolumeHelper::getInstance()->refresh();
}
}
void CAudioMute::enableMuteIcon(bool enable)
{
CNeutrinoApp *neutrino = CNeutrinoApp::getInstance();
CVolumeHelper::getInstance()->getMuteIconDimensions(&x, &y, &width, &height);
frameBuffer->fbNoCheck(true);
if (enable) {
frameBuffer->doPaintMuteIcon(true);