mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
Mute icon: Fix minor bugs
- Fix display the mute icon when leaving the audio player
- Disable mute icon in channellist when 'Quickzap in list' active or allow
- Fix hide the mute icon in movie browser, picture viewer,
file browser and upnp browser
- Font::RenderString(): Use correct value of y for CFrameBuffer::checkFbArea()
Origin commit data
------------------
Commit: 5eb7f4aea8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-17 (Fri, 17 May 2013)
Origin message was:
------------------
* Mute icon: Fix minor bugs
- Fix display the mute icon when leaving the audio player
- Disable mute icon in channellist when 'Quickzap in list' active or allow
- Fix hide the mute icon in movie browser, picture viewer,
file browser and upnp browser
- Font::RenderString(): Use correct value of y for CFrameBuffer::checkFbArea()
This commit is contained in:
@@ -92,11 +92,18 @@ void CAudioMute::AudioMute(int newValue, bool isEvent)
|
||||
if (doInit)
|
||||
CVolumeHelper::getInstance()->refresh();
|
||||
}
|
||||
else if (neutrino->getMode() == CNeutrinoApp::mode_audio) {
|
||||
if (newValue)
|
||||
frameBuffer->setFbArea(CFrameBuffer::FB_PAINTAREA_MUTEICON1, x, y, width, height);
|
||||
else
|
||||
frameBuffer->setFbArea(CFrameBuffer::FB_PAINTAREA_MUTEICON1);
|
||||
}
|
||||
}
|
||||
|
||||
void CAudioMute::enableMuteIcon(bool enable)
|
||||
{
|
||||
CNeutrinoApp *neutrino = CNeutrinoApp::getInstance();
|
||||
frameBuffer->fbNoCheck(true);
|
||||
if (enable) {
|
||||
frameBuffer->doPaintMuteIcon(true);
|
||||
do_paint_mute_icon = true;
|
||||
@@ -109,4 +116,5 @@ void CAudioMute::enableMuteIcon(bool enable)
|
||||
frameBuffer->doPaintMuteIcon(false);
|
||||
do_paint_mute_icon = false;
|
||||
}
|
||||
frameBuffer->fbNoCheck(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user