mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -900,13 +900,14 @@ void CLCD::showAudioPlayMode(AUDIOMODES m)
|
|||||||
displayUpdate();
|
displayUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CLCD::showAudioProgress(const char perc, bool isMuted)
|
void CLCD::showAudioProgress(const char perc) //, bool isMuted)
|
||||||
{
|
{
|
||||||
if (mode == MODE_AUDIO)
|
if (mode == MODE_AUDIO)
|
||||||
{
|
{
|
||||||
display.draw_fill_rect (11,53,73,61, CLCDDisplay::PIXEL_OFF);
|
display.draw_fill_rect (11,53,73,61, CLCDDisplay::PIXEL_OFF);
|
||||||
int dp = perc * 61 / 100 + 12;
|
int dp = perc * 61 / 100 + 12;
|
||||||
display.draw_fill_rect (11,54,dp,60, CLCDDisplay::PIXEL_ON);
|
display.draw_fill_rect (11,54,dp,60, CLCDDisplay::PIXEL_ON);
|
||||||
|
#if 0
|
||||||
if(isMuted)
|
if(isMuted)
|
||||||
{
|
{
|
||||||
if(dp > 12)
|
if(dp > 12)
|
||||||
@@ -917,6 +918,7 @@ void CLCD::showAudioProgress(const char perc, bool isMuted)
|
|||||||
else
|
else
|
||||||
display.draw_line (12,55,72,59, CLCDDisplay::PIXEL_ON);
|
display.draw_line (12,55,72,59, CLCDDisplay::PIXEL_ON);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
displayUpdate();
|
displayUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -203,7 +203,7 @@ class CLCD
|
|||||||
void showMenuText(const int position, const char * text, const int highlight = -1, const bool utf_encoded = false);
|
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 showAudioTrack(const std::string & artist, const std::string & title, const std::string & album);
|
||||||
void showAudioPlayMode(AUDIOMODES m=AUDIO_MODE_PLAY);
|
void showAudioPlayMode(AUDIOMODES m=AUDIO_MODE_PLAY);
|
||||||
void showAudioProgress(const char perc, bool isMuted);
|
void showAudioProgress(const char perc);
|
||||||
void setBrightness(int);
|
void setBrightness(int);
|
||||||
int getBrightness();
|
int getBrightness();
|
||||||
|
|
||||||
|
@@ -364,7 +364,7 @@ void CLCD::showAudioPlayMode(AUDIOMODES)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void CLCD::showAudioProgress(const char, bool)
|
void CLCD::showAudioProgress(const char)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user