From 50b3060b5a0e0924a227f4ad863805e2676d72c5 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 1 Aug 2016 17:41:52 +0200 Subject: [PATCH] imdb: fix poster position Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/256da8b2047ccda12912646fcd45a4a38ee33751 Author: vanhofen Date: 2016-08-01 (Mon, 01 Aug 2016) Origin message was: ------------------ - imdb: fix poster position ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/epgview.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index bdffa79af..352c270d5 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -193,7 +193,7 @@ void CEpgData::processTextToArray(std::string text, int screening, bool has_cove //NI IMDb int poster_offset = 0; if (imdb_activ && (poster_w != 0)) - poster_offset += poster_w + 10; + poster_offset = poster_w + 10; 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.."); //NI IMDb - int poster_offset = cover_offset; + int poster_offset = 0; if (imdb_activ && (poster_w != 0)) - poster_offset += poster_w + 10; + poster_offset = poster_w + 10; 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))) + " ")); @@ -1561,7 +1561,7 @@ int CEpgData::showIMDb(int ypos, bool splash) //paint poster if ((poster_w != 0) && (poster_h != 0)) - g_PicViewer->DisplayImage(imdb->posterfile.c_str(), sx+10, y, poster_w, poster_h, frameBuffer->TM_NONE); + g_PicViewer->DisplayImage(imdb->posterfile.c_str(), sx+10, y+10, poster_w, poster_h, frameBuffer->TM_NONE); return 0; }