CInfoClock: Rework calculate size & position

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


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0c18d4a6db
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-11-26 (Tue, 26 Nov 2013)



------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2013-11-26 14:08:48 +01:00
parent 8ada33708f
commit 206b940e95
6 changed files with 30 additions and 24 deletions

View File

@@ -52,6 +52,7 @@
#include <global.h>
#include <neutrino.h>
#include <gui/widget/stringinput.h>
#include <gui/audiomute.h>
#include <gui/infoclock.h>
#include <driver/volume.h>
#include <system/helpers.h>
@@ -321,6 +322,10 @@ bool CFontSizeNotifier::changeNotify(const neutrino_locale_t, void *)
hintBox.hide();
/* recalculate infoclock/muteicon/volumebar */
CVolumeHelper::getInstance()->refresh();
if (CNeutrinoApp::getInstance()->isMuted()) {
CAudioMute::getInstance()->enableMuteIcon(false);
CAudioMute::getInstance()->enableMuteIcon(true);
}
return true;
}