epgview: revert wrong changes in 50b3060b5a

Origin commit data
------------------
Branch: ni/coolstream
Commit: b6fcf49a7f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-01 (Mon, 01 Aug 2016)

Origin message was:
------------------
- epgview: revert wrong changes in 50b3060b5a

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-08-01 18:05:13 +02:00
parent d1076c309d
commit 4bc4e9c271

View File

@@ -193,7 +193,7 @@ void CEpgData::processTextToArray(std::string text, int screening, bool has_cove
//NI IMDb //NI IMDb
int poster_offset = 0; int poster_offset = 0;
if (imdb_activ && (poster_w != 0)) if (imdb_activ && (poster_w != 0))
poster_offset = poster_w + 10; poster_offset += poster_w + 10;
while (*text_!=0) while (*text_!=0)
{ {
@@ -270,9 +270,9 @@ void CEpgData::showText(int startPos, int ypos, bool cover, bool fullClear)
int digi = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO2]->getRenderWidth("29.."); int digi = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO2]->getRenderWidth("29..");
//NI IMDb //NI IMDb
int poster_offset = 0; int poster_offset = cover_offset;
if (imdb_activ && (poster_w != 0)) if (imdb_activ && (poster_w != 0))
poster_offset = poster_w + 10; poster_offset += poster_w + 10;
for(int i = 0; i < 12;i++){ for(int i = 0; i < 12;i++){
max_mon_w = std::max(max_mon_w, g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO2]->getRenderWidth(std::string(g_Locale->getText(CLocaleManager::getMonth(i))) + " ")); max_mon_w = std::max(max_mon_w, g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO2]->getRenderWidth(std::string(g_Locale->getText(CLocaleManager::getMonth(i))) + " "));