diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-03-13 12:47:07 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-06-04 13:56:32 +0200 |
commit | e8593fa2031d216f613c9f3ec990429e11082a78 (patch) | |
tree | 32e792081b14e123dbb39cc17f620719fb8780cf /detailview.c | |
parent | c272b0fc05438fff16ffd98f33e8cd887398e333 (diff) | |
download | skin-nopacity-e8593fa2031d216f613c9f3ec990429e11082a78.tar.gz skin-nopacity-e8593fa2031d216f613c9f3ec990429e11082a78.tar.bz2 |
Cleaning up some commented out osd->Flush()
Diffstat (limited to 'detailview.c')
-rw-r--r-- | detailview.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/detailview.c b/detailview.c index 6d869a0..17eaa82 100644 --- a/detailview.c +++ b/detailview.c @@ -199,7 +199,6 @@ void cNopacityView::DrawFloatingContent(std::string *infoText, cTvMedia *img, cT pixmapContent->DrawText(cPoint(border, yText), wTextFull.GetLine(i), Theme.Color(clrMenuFontDetailViewText), clrTransparent, font);
yText += lineHeight;
}
-// osd->Flush();
cImageLoader imgLoader;
if (imgLoader.LoadPoster(img->path.c_str(), imgWidth, imgHeight)) {
if (Running() && pixmapContent)
@@ -207,7 +206,6 @@ void cNopacityView::DrawFloatingContent(std::string *infoText, cTvMedia *img, cT }
if (!img2)
return;
-// osd->Flush();
if (imgLoader.LoadPoster(img2->path.c_str(), imgWidth2, imgHeight2)) {
if (Running() && pixmapContent)
pixmapContent->DrawImage(cPoint(width - imgWidth2 - border, imgHeight + 2*border), imgLoader.GetImage());
@@ -336,7 +334,6 @@ void cNopacityView::DrawActors(std::vector<cActor> *actors) { }
actor++;
}
-// osd->Flush();
x = 0;
y += thumbHeight + 2 * fontSmall->Height() + border + border/2;
}
@@ -539,7 +536,6 @@ void cNopacityEPGView::DrawImages(void) { if (drawPic) {
pixmapContent->DrawImage(cPoint((width - imgWidth) / 2, yPic), imgLoader.GetImage());
yPic += imgHeight + border;
-// osd->Flush();
}
}
}
@@ -562,7 +558,6 @@ void cNopacityEPGView::Action(void) { ClearContent();
if (!headerDrawn) {
DrawHeader();
-// osd->Flush();
DrawHeaderEPGImage();
// osd->Flush();
headerDrawn = true;
@@ -745,32 +740,27 @@ void cNopacitySeriesView::DrawImages(void) { if (imgLoader.LoadPoster(series.banners[i].path.c_str(), series.banners[i].width, series.banners[i].height) && Running()) {
pixmapContent->DrawImage(cPoint((width - series.banners[i].width) / 2, yPic), imgLoader.GetImage());
yPic += series.banners[i].height + border;
-// osd->Flush();
}
}
if (imgLoader.LoadPoster(series.fanarts[i].path.c_str(), fanartWidth, fanartHeight) && Running()) {
pixmapContent->DrawImage(cPoint((width - fanartWidth)/2, yPic), imgLoader.GetImage());
yPic += fanartHeight + border;
-// osd->Flush();
}
}
if (numPosters >= 1) {
if (imgLoader.LoadPoster(series.posters[0].path.c_str(), posterWidth, posterHeight) && Running()) {
pixmapContent->DrawImage(cPoint(border, yPic), imgLoader.GetImage());
-// osd->Flush();
yPic += posterHeight + border;
}
}
if (numPosters >= 2) {
if (imgLoader.LoadPoster(series.posters[1].path.c_str(), posterWidth, posterHeight) && Running()) {
pixmapContent->DrawImage(cPoint(2 * border + posterWidth, yPic - posterHeight - border), imgLoader.GetImage());
-// osd->Flush();
}
}
if (numPosters == 3) {
if (imgLoader.LoadPoster(series.posters[2].path.c_str(), posterWidth, posterHeight) && Running()) {
pixmapContent->DrawImage(cPoint((width - posterWidth) / 2, yPic), imgLoader.GetImage());
-// osd->Flush();
}
}
}
@@ -802,7 +792,6 @@ void cNopacitySeriesView::Action(void) { ClearContent();
if (!headerDrawn) {
DrawHeader();
-// osd->Flush();
DrawHeaderBanner();
// osd->Flush();
headerDrawn = true;
@@ -995,28 +984,24 @@ void cNopacityMovieView::DrawImages(void) { if (imgLoader.LoadPoster(movie.fanart.path.c_str(), fanartWidth, fanartHeight) && Running()) {
pixmapContent->DrawImage(cPoint((width - fanartWidth)/2, yPic), imgLoader.GetImage());
yPic += fanartHeight + border;
-// osd->Flush();
}
}
if (movie.collectionFanart.width > 0 && movie.collectionFanart.height > 0 && movie.collectionFanart.path.size() > 0) {
if (imgLoader.LoadPoster(movie.collectionFanart.path.c_str(), collectionFanartWidth, collectionFanartHeight) && Running()) {
pixmapContent->DrawImage(cPoint((width - collectionFanartWidth)/2, yPic), imgLoader.GetImage());
yPic += collectionFanartHeight + border;
-// osd->Flush();
}
}
if (movie.poster.width > 0 && movie.poster.height > 0 && movie.poster.path.size() > 0) {
if (imgLoader.LoadPoster(movie.poster.path.c_str(), movie.poster.width, movie.poster.height) && Running()) {
pixmapContent->DrawImage(cPoint((width - movie.poster.width) / 2, yPic), imgLoader.GetImage());
yPic += movie.poster.height + border;
-// osd->Flush();
}
}
if (movie.collectionPoster.width > 0 && movie.collectionPoster.height > 0 && movie.collectionPoster.path.size() > 0) {
if (imgLoader.LoadPoster(movie.collectionPoster.path.c_str(), movie.collectionPoster.width, movie.collectionPoster.height) && Running()) {
pixmapContent->DrawImage(cPoint((width - movie.collectionPoster.width) / 2, yPic), imgLoader.GetImage());
yPic += movie.collectionPoster.height + border;
-// osd->Flush();
}
}
}
@@ -1039,7 +1024,6 @@ void cNopacityMovieView::Action(void) { ClearContent();
if (!headerDrawn) {
DrawHeader();
-// osd->Flush();
DrawHeaderPoster();
// osd->Flush();
headerDrawn = true;
|