mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
-fiix for scalable mute icon
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@369 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -3645,8 +3645,13 @@ void CNeutrinoApp::saveEpg()
|
|||||||
void CNeutrinoApp::AudioMute( int newValue, bool isEvent )
|
void CNeutrinoApp::AudioMute( int newValue, bool isEvent )
|
||||||
{
|
{
|
||||||
//printf("MUTE: val %d current %d event %d\n", newValue, current_muted, isEvent);
|
//printf("MUTE: val %d current %d event %d\n", newValue, current_muted, isEvent);
|
||||||
int dx = 40;
|
int dx = 0;
|
||||||
int dy = 40;
|
int dy = 0;
|
||||||
|
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_MUTE,&dx,&dy);
|
||||||
|
int offset = (dx/4);
|
||||||
|
dx += offset;
|
||||||
|
dy += offset;
|
||||||
|
|
||||||
int x = g_settings.screen_EndX-dx;
|
int x = g_settings.screen_EndX-dx;
|
||||||
int y = g_settings.screen_StartY;
|
int y = g_settings.screen_StartY;
|
||||||
|
|
||||||
@@ -3661,7 +3666,7 @@ printf("AudioMute: current %d new %d isEvent: %d\n", current_muted, newValue, is
|
|||||||
{
|
{
|
||||||
if( current_muted ) {
|
if( current_muted ) {
|
||||||
frameBuffer->paintBoxRel(x, y, dx, dy, COL_INFOBAR_PLUS_0);
|
frameBuffer->paintBoxRel(x, y, dx, dy, COL_INFOBAR_PLUS_0);
|
||||||
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_MUTE, x+5, y+5);
|
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_MUTE, x+(offset/2), y+(offset/2));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
frameBuffer->paintBackgroundBoxRel(x, y, dx, dy);
|
frameBuffer->paintBackgroundBoxRel(x, y, dx, dy);
|
||||||
|
Reference in New Issue
Block a user