CInfoClock: Fix paint info clock when mute icon is displayed

Origin commit data
------------------
Commit: 6a5d335430
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-11-20 (Wed, 20 Nov 2013)
This commit is contained in:
Michael Liebmann
2013-11-20 05:49:44 +01:00
parent a2967e2488
commit db1a003584
4 changed files with 24 additions and 2 deletions

View File

@@ -31,7 +31,6 @@
#include <global.h>
#include <neutrino.h>
// #include <driver/volume.h>
#include <gui/volumebar.h>
#include <gui/infoclock.h>
@@ -82,3 +81,16 @@ bool CInfoClock::StopClock()
return ret;
}
void CInfoClock::paint(bool do_save_bg)
{
// calculate current x-position of clock (mute icon on/off)
x = CVolumeHelper::getInstance()->getInfoClockX();
setXPos(x);
//prepare items before paint
initCCLockItems();
//paint the clock
paintForm(do_save_bg);
}