diff options
author | louis <louis.braun@gmx.de> | 2013-09-18 14:16:08 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-09-18 14:16:08 +0200 |
commit | 9a0778bbdf309018a635229bd0523b3435388978 (patch) | |
tree | 81d0ff92c23475e65d6d9a4160c774b6ef22d30f /textwindow.c | |
parent | e04d23aa7cdeeb306456be490a9fe9daafaa7570 (diff) | |
download | skin-nopacity-9a0778bbdf309018a635229bd0523b3435388978.tar.gz skin-nopacity-9a0778bbdf309018a635229bd0523b3435388978.tar.bz2 |
fixed some spaces in textwindow
Diffstat (limited to 'textwindow.c')
-rw-r--r-- | textwindow.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/textwindow.c b/textwindow.c index 9a65ac8..ee1e2cb 100644 --- a/textwindow.c +++ b/textwindow.c @@ -215,12 +215,12 @@ void cNopacityTextWindow::SetEvent(const cEvent *event) { if (imgLoader.LoadPoster(poster.media.path.c_str(), posterWidth, posterHeight)) { int posterX = width - posterWidth - border; pixmap->DrawImage(cPoint(posterX, border), imgLoader.GetImage()); - widthTextHeader -= posterWidth; + widthTextHeader -= posterWidth + border; } } else if (imgLoader.LoadEPGImage(event->EventID())) { epgImageFound = true; pixmap->DrawImage(cPoint(width - config.epgImageWidth - border, y), imgLoader.GetImage()); - widthTextHeader -= config.epgImageWidth; + widthTextHeader -= config.epgImageWidth + border; } //Title y = DrawTextWrapper(event->Title(), widthTextHeader, y, border, fontHeader, Theme.Color(clrMenuFontDetailViewHeaderTitle), height); @@ -259,17 +259,17 @@ void cNopacityTextWindow::SetRecording(const cRecording *recording) { if (imgLoader.LoadPoster(*manualPosterPath, posterWidth, posterHeight)) { int posterX = width - posterWidth - border; pixmap->DrawImage(cPoint(posterX, border), imgLoader.GetImage()); - widthTextHeader -= posterWidth; + widthTextHeader -= posterWidth + border; } } else if (hasPoster) { if (imgLoader.LoadPoster(poster.media.path.c_str(), posterWidth, posterHeight)) { int posterX = width - posterWidth - border; pixmap->DrawImage(cPoint(posterX, border), imgLoader.GetImage()); - widthTextHeader -= posterWidth; + widthTextHeader -= posterWidth + border; } } else if (imgLoader.LoadRecordingImage(recording->FileName())) { pixmap->DrawImage(cPoint(width - config.epgImageWidth - border, y), imgLoader.GetImage()); - widthTextHeader -= config.epgImageWidth; + widthTextHeader -= config.epgImageWidth + border; recImageFound = true; } const cRecordingInfo *info = recording->Info(); @@ -373,13 +373,14 @@ void cNopacityTextWindow::DrawTextWrapperFloat(const char *text, int widthSmall, } void cNopacityTextWindow::DrawPoster(int border) { + int posterY = font->Height() / 2; cImageLoader imgLoader; if (hasManualPoster) { if (imgLoader.LoadPoster(*manualPosterPath, posterWidth, posterHeight)) { - pixmap->DrawImage(cPoint(border, font->Height()), imgLoader.GetImage()); + pixmap->DrawImage(cPoint(border, posterY), imgLoader.GetImage()); } } else if (imgLoader.LoadPoster(poster.media.path.c_str(), posterWidth, posterHeight)) { - pixmap->DrawImage(cPoint(border, font->Height()), imgLoader.GetImage()); + pixmap->DrawImage(cPoint(border, posterY), imgLoader.GetImage()); } } |