diff options
author | Christian <zerov83@gmail.com> | 2016-03-17 20:59:42 +0100 |
---|---|---|
committer | Christian <zerov83@gmail.com> | 2016-03-17 20:59:42 +0100 |
commit | 4c8f707f36e49ccd00cdaa200da3cb3c629e3fe1 (patch) | |
tree | d21f356b2a89b85569ad60de81786266d8fa9e7a | |
parent | 27817bc027d6b744197d9c2614f87e90c1d2e208 (diff) | |
download | vdr-plugin-plex-4c8f707f36e49ccd00cdaa200da3cb3c629e3fe1.tar.gz vdr-plugin-plex-4c8f707f36e49ccd00cdaa200da3cb3c629e3fe1.tar.bz2 |
Fixed navigation in DetailView
-rw-r--r-- | detailView.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/detailView.cpp b/detailView.cpp index 8479a46..64b0ba5 100644 --- a/detailView.cpp +++ b/detailView.cpp @@ -15,6 +15,20 @@ cDetailView::cDetailView(std::shared_ptr<skindesignerapi::cOsdView> detailView, m_pGrid = NULL; SetViewGrid(std::shared_ptr<skindesignerapi::cViewGrid>(detailView->GetViewGrid((int)eViewDetailViewGrids::extras))); SetGridDimensions(Config::GetInstance().ExtrasGridRows, Config::GetInstance().ExtrasGridColumns); + + m_vElements.clear(); + + int pos = 0; + for(auto it = m_pVideo->m_vExtras.begin(); it != m_pVideo->m_vExtras.end(); ++it) { + plexclient::Video *elem = &(*it); + elem->AbsolutePosition = pos++;; + m_vElements.push_back(elem); + } + + m_startIndex = 0; + + m_setIterator = true; + FilterElements(0); } void cDetailView::Flush() @@ -34,20 +48,6 @@ void cDetailView::Flush() void cDetailView::Draw() { // Draw Grid - m_vElements.clear(); - - int pos = 0; - for(auto it = m_pVideo->m_vExtras.begin(); it != m_pVideo->m_vExtras.end(); ++it) { - plexclient::Video *elem = &(*it); - elem->AbsolutePosition = pos++;; - m_vElements.push_back(elem); - } - - m_startIndex = 0; - -// m_pGrid->Clear(); - m_setIterator = true; - FilterElements(0); DrawBackground(); DrawFooter(); |