lcdd/simple_display: adapt to new API

Origin commit data
------------------
Branch: ni/coolstream
Commit: bbafc5c9ba
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-01-26 (Mon, 26 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2015-01-26 17:27:58 +01:00
parent 2263c8bd2e
commit 06a7d16bf8
3 changed files with 5 additions and 3 deletions

View File

@@ -900,13 +900,14 @@ void CLCD::showAudioPlayMode(AUDIOMODES m)
displayUpdate();
}
void CLCD::showAudioProgress(const char perc, bool isMuted)
void CLCD::showAudioProgress(const char perc) //, bool isMuted)
{
if (mode == MODE_AUDIO)
{
display.draw_fill_rect (11,53,73,61, CLCDDisplay::PIXEL_OFF);
int dp = perc * 61 / 100 + 12;
display.draw_fill_rect (11,54,dp,60, CLCDDisplay::PIXEL_ON);
#if 0
if(isMuted)
{
if(dp > 12)
@@ -917,6 +918,7 @@ void CLCD::showAudioProgress(const char perc, bool isMuted)
else
display.draw_line (12,55,72,59, CLCDDisplay::PIXEL_ON);
}
#endif
displayUpdate();
}
}