summaryrefslogtreecommitdiff
path: root/menudetailview.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-08-24 14:55:40 +0200
committerlouis <louis.braun@gmx.de>2013-08-24 14:55:40 +0200
commitd348dfdab620cce7f0c24da3e78eff7ccb655d1d (patch)
treed4029efb4c747aabcb99c1d18ee2a7030fbbf71b /menudetailview.c
parent7da4695ec136b0ddada153a47ec5d0252f00a214 (diff)
downloadskin-nopacity-d348dfdab620cce7f0c24da3e78eff7ccb655d1d.tar.gz
skin-nopacity-d348dfdab620cce7f0c24da3e78eff7ccb655d1d.tar.bz2
fixed a bug that EPG images are not displayed correctly in detail view
Diffstat (limited to 'menudetailview.c')
-rw-r--r--menudetailview.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/menudetailview.c b/menudetailview.c
index 4288765..f2db1b0 100644
--- a/menudetailview.c
+++ b/menudetailview.c
@@ -655,8 +655,8 @@ void cNopacityMenuDetailRecordingView::SetContentHeight(void) {
yEPGText = heightBanner;
yActors = heightBanner + heightEPG;
yFanart = heightBanner + heightEPG + heightActors;
- yAddInf = heightBanner + heightEPG + heightActors + heightFanart;
- yEPGPics = heightBanner + heightEPG + heightActors + heightFanart + heightAdditionalInfo;
+ yEPGPics = heightBanner + heightEPG + heightActors + heightFanart;
+ yAddInf = heightBanner + heightEPG + heightActors + heightFanart + heightEPGPics;
int totalHeight = heightBanner + heightEPG + heightActors + heightFanart + heightAdditionalInfo + heightEPGPics;
//check if pixmap content has to be scrollable
@@ -747,7 +747,7 @@ bool cNopacityMenuDetailRecordingView::LoadEPGPics(void) {
int cNopacityMenuDetailRecordingView::HeightEPGPics(void) {
int numPicsAvailable = epgpics.size();
- int picsPerLine = width / (config.epgImageWidthLarge + border);
+ int picsPerLine = contentWidth / (config.epgImageWidthLarge + border);
int picLines = numPicsAvailable / picsPerLine;
if (numPicsAvailable%picsPerLine != 0)
picLines++;
@@ -755,7 +755,7 @@ int cNopacityMenuDetailRecordingView::HeightEPGPics(void) {
}
void cNopacityMenuDetailRecordingView::DrawEPGPictures(int height) {
- int picsPerLine = width / (config.epgImageWidthLarge + border);
+ int picsPerLine = contentWidth / (config.epgImageWidthLarge + border);
int currentX = border;
int currentY = height + border;
int currentPicsPerLine = 1;