diff options
-rw-r--r-- | Config.h | 12 | ||||
-rw-r--r-- | PVideo.cpp | 1 | ||||
-rw-r--r-- | browserGrid.cpp | 2 | ||||
-rw-r--r-- | detailView.cpp | 2 |
4 files changed, 11 insertions, 6 deletions
@@ -76,10 +76,14 @@ public: std::string GetLanguage(); std::string GetUsername(); std::string GetPassword(); - int ThumbHeight() { return 1080 / CoverGridRows; }; - int ThumbWidth() { return 1920 / CoverGridColumns; }; - int ArtHeight() { return 1080 / 4; }; - int ArtWidth() { return 1920 / 4; }; + //int ThumbHeight() { return 1080 / CoverGridRows; }; + //int ThumbWidth() { return 1920 / CoverGridColumns; }; + //int ArtHeight() { return 1080 / 4; }; + //int ArtWidth() { return 1920 / 4; }; + int ThumbHeight() { return 1080; }; + int ThumbWidth() { return 1920; }; + int ArtHeight() { return 1080; }; + int ArtWidth() { return 1920; }; int BannerHeight() { return 1080 / 2; }; int BannerWidth() { return 1920 / 2; }; @@ -45,6 +45,7 @@ bool Video::UpdateFromServer() m_vGenre.clear(); m_vRole.clear(); m_vWriter.clear(); + m_vExtras.clear(); InputSource src(rs); DOMParser parser; diff --git a/browserGrid.cpp b/browserGrid.cpp index b3ddb83..8b4485b 100644 --- a/browserGrid.cpp +++ b/browserGrid.cpp @@ -361,7 +361,7 @@ void cBrowserGrid::DrawScrollbar() return; int currentRow = SelectedObject()->AbsolutePosition / m_columns; - int totalRows = m_vElements.size() / m_columns; + int totalRows = ceil((double) m_vElements.size() / m_columns); int scrollBarHeight = 100.0 / totalRows * m_rows; diff --git a/detailView.cpp b/detailView.cpp index 64b0ba5..2fd207f 100644 --- a/detailView.cpp +++ b/detailView.cpp @@ -139,7 +139,7 @@ void cDetailView::DrawScrollbar() return; int currentRow = SelectedObject()->AbsolutePosition / m_columns; - int totalRows = m_vElements.size() / m_columns; + int totalRows = ceil((double) m_vElements.size() / m_columns); int scrollBarHeight = 100.0 / totalRows * m_rows; |