mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
CInfoClock: Fix paint info clock when mute icon is displayed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user