gui/moviebrowser.cpp: try to fix header, similar to:

617eece227
This commit is contained in:
[CST] Focus
2014-09-25 13:28:42 +04:00
parent 9f642c973d
commit 1f8bb7dfae
2 changed files with 7 additions and 1 deletions

View File

@@ -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);
}

View File

@@ -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;