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:
vanhofen
2018-05-01 23:36:02 +02:00
parent 160f11e05c
commit bd0125cfed
2 changed files with 3 additions and 3 deletions

View File

@@ -311,7 +311,7 @@ void CEpgData::showText(int startPos, int ypos, bool has_cover, bool fullClear)
if (!provider_logo.empty())
{
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;
}
@@ -335,8 +335,8 @@ void CEpgData::showText(int startPos, int ypos, bool has_cover, bool fullClear)
}
medlinecount = (sb - cc_starbar->getHeight()) / medlineheight;
y += cc_starbar->getHeight();
}
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;
txt.clear();
imdb->getIMDbData(txt);
processTextToArray(" ", 0, imdb->gotPoster()); // empty line to get space for the rating stars
processTextToArray(txt, 0, imdb->gotPoster());
textCount = epgText.size();