mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
neutrino: improve TD LCD support in movieplayer
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2027 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: b35a163e85
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-01-01 (Sun, 01 Jan 2012)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -746,6 +746,31 @@ void CLCD::showPercentOver(const unsigned char perc, const bool perform_update,
|
||||
|
||||
void CLCD::showMenuText(const int position, const char * text, const int highlight, const bool utf_encoded)
|
||||
{
|
||||
/* hack, to not have to patch too much in movieplayer.cpp */
|
||||
if (mode == MODE_MOVIE) {
|
||||
size_t p;
|
||||
AUDIOMODES m = movie_playmode;
|
||||
std::string mytext = text;
|
||||
if (mytext.find("> ") == 0) {
|
||||
mytext = mytext.substr(2);
|
||||
m = AUDIO_MODE_PLAY;
|
||||
} else if (mytext.find("|| ") == 0) {
|
||||
mytext = mytext.substr(3);
|
||||
m = AUDIO_MODE_PAUSE;
|
||||
} else if ((p = mytext.find("s||> ")) < 3) {
|
||||
mytext = mytext.substr(p + 5);
|
||||
m = AUDIO_MODE_PLAY;
|
||||
} else if ((p = mytext.find("x>> ")) < 3) {
|
||||
mytext = mytext.substr(p + 4);
|
||||
m = AUDIO_MODE_FF;
|
||||
} else if ((p = mytext.find("x<< ")) < 3) {
|
||||
mytext = mytext.substr(p + 4);
|
||||
m = AUDIO_MODE_REV;
|
||||
}
|
||||
setMovieInfo(m, "", mytext, false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode != MODE_MENU_UTF8)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user