From 1f8bb7dfae9fddca5bd113ae4045cc8ece326f1b Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 25 Sep 2014 13:28:42 +0400 Subject: [PATCH] gui/moviebrowser.cpp: try to fix header, similar to: 617eece2271faacbb6205fef8cb47d043a99674a --- src/gui/moviebrowser.cpp | 7 ++++++- src/gui/moviebrowser.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index 9ba263e4d..d30099323 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -1370,7 +1370,10 @@ void CMovieBrowser::refreshMovieInfo(void) pb_hdd_offset = 0; static uint64_t old_EpgId = 0; if (CChannelLogo && (old_EpgId != m_movieSelectionHandler->epgEpgId >>16)) { - CChannelLogo->hide(); + if (newHeader) + CChannelLogo->clearSavedScreen(); + else + CChannelLogo->hide(); delete CChannelLogo; } if (old_EpgId != m_movieSelectionHandler->epgEpgId >>16) { @@ -1385,6 +1388,7 @@ void CMovieBrowser::refreshMovieInfo(void) CChannelLogo->setXPos(lx - pb_hdd_offset); CChannelLogo->setYPos(ly); CChannelLogo->paint(); + newHeader = false; } if(logo_ok) { @@ -1729,6 +1733,7 @@ void CMovieBrowser::refreshTitle(void) CComponentsHeader header(x, y, w, h, title.c_str(), NEUTRINO_ICON_MOVIEPLAYER); header.paint(CC_SAVE_SCREEN_NO); + newHeader = true; info_hdd_level(true); } diff --git a/src/gui/moviebrowser.h b/src/gui/moviebrowser.h index c4429592d..e807cf975 100644 --- a/src/gui/moviebrowser.h +++ b/src/gui/moviebrowser.h @@ -307,6 +307,7 @@ class CMovieBrowser : public CMenuTarget bool m_showLastPlayFiles; bool m_showMovieInfo; bool m_showFilter; + bool newHeader; MI_MOVIE_INFO* m_movieSelectionHandler; int m_currentStartPos;