From bbafc5c9baf57d25b1e0b673597156b3c88ad8a2 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Mon, 26 Jan 2015 17:27:58 +0100 Subject: [PATCH] lcdd/simple_display: adapt to new API --- src/driver/lcdd.cpp | 4 +++- src/driver/lcdd.h | 2 +- src/driver/simple_display.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/driver/lcdd.cpp b/src/driver/lcdd.cpp index 3a1450779..b21b7a5d0 100644 --- a/src/driver/lcdd.cpp +++ b/src/driver/lcdd.cpp @@ -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(); } } diff --git a/src/driver/lcdd.h b/src/driver/lcdd.h index 5a763ef64..789c88cb3 100644 --- a/src/driver/lcdd.h +++ b/src/driver/lcdd.h @@ -203,7 +203,7 @@ class CLCD void showMenuText(const int position, const char * text, const int highlight = -1, const bool utf_encoded = false); void showAudioTrack(const std::string & artist, const std::string & title, const std::string & album); void showAudioPlayMode(AUDIOMODES m=AUDIO_MODE_PLAY); - void showAudioProgress(const char perc, bool isMuted); + void showAudioProgress(const char perc); void setBrightness(int); int getBrightness(); diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index 30681a989..d7a022959 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -364,7 +364,7 @@ void CLCD::showAudioPlayMode(AUDIOMODES) { } -void CLCD::showAudioProgress(const char, bool) +void CLCD::showAudioProgress(const char) { }