mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
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:
@@ -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