summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Config.h12
-rw-r--r--PVideo.cpp1
-rw-r--r--browserGrid.cpp2
-rw-r--r--detailView.cpp2
4 files changed, 11 insertions, 6 deletions
diff --git a/Config.h b/Config.h
index d11093a..5d87ca0 100644
--- a/Config.h
+++ b/Config.h
@@ -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; };
diff --git a/PVideo.cpp b/PVideo.cpp
index c8020f6..ca4add7 100644
--- a/PVideo.cpp
+++ b/PVideo.cpp
@@ -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;