mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
epgview: small fixes in imdb text arrangement
Origin commit data
------------------
Branch: ni/coolstream
Commit: 79c72f63a1
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-05-01 (Tue, 01 May 2018)
Origin message was:
------------------
- epgview: small fixes in imdb text arrangement
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -311,7 +311,7 @@ void CEpgData::showText(int startPos, int ypos, bool has_cover, bool fullClear)
|
|||||||
if (!provider_logo.empty())
|
if (!provider_logo.empty())
|
||||||
{
|
{
|
||||||
frameBuffer->getIconSize(provider_logo.c_str(), &logo_w, &logo_h);
|
frameBuffer->getIconSize(provider_logo.c_str(), &logo_w, &logo_h);
|
||||||
frameBuffer->paintIcon(provider_logo.c_str(), sx+OFFSET_INNER_MID+cover_offset, y+(medlineheight-logo_h)/2);
|
frameBuffer->paintIcon(provider_logo.c_str(), sx+OFFSET_INNER_MID+cover_offset, y, medlineheight);
|
||||||
logo_offset = logo_w + OFFSET_INNER_MID;
|
logo_offset = logo_w + OFFSET_INNER_MID;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -335,8 +335,8 @@ void CEpgData::showText(int startPos, int ypos, bool has_cover, bool fullClear)
|
|||||||
}
|
}
|
||||||
|
|
||||||
medlinecount = (sb - cc_starbar->getHeight()) / medlineheight;
|
medlinecount = (sb - cc_starbar->getHeight()) / medlineheight;
|
||||||
y += cc_starbar->getHeight();
|
|
||||||
}
|
}
|
||||||
|
y += medlineheight;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = startPos; i < textSize && i < startPos + medlinecount; i++, y += medlineheight)
|
for (int i = startPos; i < textSize && i < startPos + medlinecount; i++, y += medlineheight)
|
||||||
@@ -1682,7 +1682,6 @@ int CEpgData::showIMDb(bool splash)
|
|||||||
std::string txt;
|
std::string txt;
|
||||||
txt.clear();
|
txt.clear();
|
||||||
imdb->getIMDbData(txt);
|
imdb->getIMDbData(txt);
|
||||||
processTextToArray(" ", 0, imdb->gotPoster()); // empty line to get space for the rating stars
|
|
||||||
processTextToArray(txt, 0, imdb->gotPoster());
|
processTextToArray(txt, 0, imdb->gotPoster());
|
||||||
|
|
||||||
textCount = epgText.size();
|
textCount = epgText.size();
|
||||||
|
@@ -370,6 +370,7 @@ void CIMDB::getIMDbData(std::string& txt)
|
|||||||
txt += g_Locale->getString(LOCALE_IMDB_DATA_VOTES) + ": " + m["imdbVotes"] + "\n";
|
txt += g_Locale->getString(LOCALE_IMDB_DATA_VOTES) + ": " + m["imdbVotes"] + "\n";
|
||||||
if (checkIMDbElement("Metascore"))
|
if (checkIMDbElement("Metascore"))
|
||||||
txt += g_Locale->getString(LOCALE_IMDB_DATA_METASCORE) + ": " + m["Metascore"] + "/100\n";
|
txt += g_Locale->getString(LOCALE_IMDB_DATA_METASCORE) + ": " + m["Metascore"] + "/100\n";
|
||||||
|
txt += "\n";
|
||||||
txt += g_Locale->getString(LOCALE_IMDB_DATA_TITLE) + ": " + m["Title"] + "\n";
|
txt += g_Locale->getString(LOCALE_IMDB_DATA_TITLE) + ": " + m["Title"] + "\n";
|
||||||
if (checkIMDbElement("Released"))
|
if (checkIMDbElement("Released"))
|
||||||
txt += g_Locale->getString(LOCALE_IMDB_DATA_RELEASED) + ": " + m["Country"] + ", " + m["Released"] + "\n";
|
txt += g_Locale->getString(LOCALE_IMDB_DATA_RELEASED) + ": " + m["Country"] + ", " + m["Released"] + "\n";
|
||||||
|
Reference in New Issue
Block a user