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,6 +1370,9 @@ void CMovieBrowser::refreshMovieInfo(void)
pb_hdd_offset = 0; pb_hdd_offset = 0;
static uint64_t old_EpgId = 0; static uint64_t old_EpgId = 0;
if (CChannelLogo && (old_EpgId != m_movieSelectionHandler->epgEpgId >>16)) { if (CChannelLogo && (old_EpgId != m_movieSelectionHandler->epgEpgId >>16)) {
if (newHeader)
CChannelLogo->clearSavedScreen();
else
CChannelLogo->hide(); CChannelLogo->hide();
delete CChannelLogo; delete CChannelLogo;
} }
@@ -1385,6 +1388,7 @@ void CMovieBrowser::refreshMovieInfo(void)
CChannelLogo->setXPos(lx - pb_hdd_offset); CChannelLogo->setXPos(lx - pb_hdd_offset);
CChannelLogo->setYPos(ly); CChannelLogo->setYPos(ly);
CChannelLogo->paint(); CChannelLogo->paint();
newHeader = false;
} }
if(logo_ok) { if(logo_ok) {
@@ -1729,6 +1733,7 @@ void CMovieBrowser::refreshTitle(void)
CComponentsHeader header(x, y, w, h, title.c_str(), NEUTRINO_ICON_MOVIEPLAYER); CComponentsHeader header(x, y, w, h, title.c_str(), NEUTRINO_ICON_MOVIEPLAYER);
header.paint(CC_SAVE_SCREEN_NO); header.paint(CC_SAVE_SCREEN_NO);
newHeader = true;
info_hdd_level(true); info_hdd_level(true);
} }

View File

@@ -307,6 +307,7 @@ class CMovieBrowser : public CMenuTarget
bool m_showLastPlayFiles; bool m_showLastPlayFiles;
bool m_showMovieInfo; bool m_showMovieInfo;
bool m_showFilter; bool m_showFilter;
bool newHeader;
MI_MOVIE_INFO* m_movieSelectionHandler; MI_MOVIE_INFO* m_movieSelectionHandler;
int m_currentStartPos; int m_currentStartPos;